[Varnish] #1526: PURGE does not work on a 403 cached object

Varnish varnish-bugs at varnish-cache.org
Fri Jun 13 21:25:09 CEST 2014


#1526: PURGE does not work on a 403 cached object
-------------------------+--------------------
 Reporter:  raymondjiii  |       Owner:
     Type:  defect       |      Status:  new
 Priority:  normal       |   Milestone:
Component:  varnishd     |     Version:  3.0.5
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+--------------------

Comment (by raymondjiii):

 I have found that vcl_fetch() is being called on a PURGE request for an
 object that is a 403.

 If I remove the following from vcl_fetch() then things are fine:

 ...
  else if (beresp.ttl <= 0s ||
     beresp.http.Vary == "*") {
     # Mark as "Hit-For-Pass" for the next 2 minutes
     set beresp.ttl = 120s;
     return(hit_for_pass);
  }

 So with the above a 403 object that is purged is called vcl_fetch with the
 above code removed a PURGE request does not call vcl_fetch() on a PURGE
 miss or hit.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1526#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list