[Varnish] #718: obj.hits or beresp.hits not available in vcl_deliver

Varnish varnish-bugs at varnish-cache.org
Thu Jun 10 16:13:33 CEST 2010


#718: obj.hits or beresp.hits not available in vcl_deliver
----------------------+-----------------------------------------------------
 Reporter:  grosser2  |       Owner:  phk  
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  varnishd  |     Version:  2.1.2
 Severity:  normal    |    Keywords:       
----------------------+-----------------------------------------------------
 # add hit or miss in header
   if (beresp.hits > 0) {
     set resp.http.X-Cache = "HIT";
   } else {
     set resp.http.X-Cache = "MISS";
   }

 Message from VCC-compiler:
 Unknown variable 'beresp.hits'
 At: (input Line 52 Pos 7)
   if (beresp.hits > 0) {
 ------###########-------
 Running VCC-compiler failed, exit 1
 VCL compilation failed

-- 
Ticket URL: <http://varnish-cache.org/ticket/718>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list