[Varnish] #381: Extra information useful in VCLExamplePurging

Varnish varnish-bugs at projects.linpro.no
Tue Nov 18 21:27:55 CET 2008

#381: Extra information useful in VCLExamplePurging
 Reporter:  ldr  |        Type:  documentation
   Status:  new  |    Priority:  normal       
Milestone:       |   Component:  build        
  Version:  2.0  |    Severity:  normal       
 Keywords:       |  
 VCLExamplePurging should mention that if vcl_hash is customised, it is
 possible that PURGE requests will not 'hit' as the hash generated for the
 purging server process may not match that generated by a browser. To
 handle this you can purge unconditionally in vvcl_recv:

 sub vcl_recv {
         if (req.request == "PURGE") {
                 if (!client.ip ~ purge) {
                         error 405 "Not allowed.";
                 error 200 "Purged";

Ticket URL: <http://varnish.projects.linpro.no/ticket/381>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list