[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-bugs
Subject:    [Varnish] #381: Extra information useful in VCLExamplePurging
From:       varnish-bugs () projects ! linpro ! no (Varnish)
Date:       2008-11-18 20:27:55
Message-ID: 049.ffbf87943082984dd9bec3d1c2f76fca () projects ! linpro ! no
[Download RAW message or body]

#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.";
                 }
                 purge_url(req.url);
                 error 200 "Purged";
         }
 }
 }}}

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic