[Varnish] #444: allow to handle non-GET req in vcl_miss

Varnish varnish-bugs at projects.linpro.no
Wed Apr 29 11:18:03 CEST 2009


#444: allow to handle non-GET req in vcl_miss
-------------------------+--------------------------------------------------
 Reporter:  hajile       |        Owner:        
     Type:  enhancement  |       Status:  closed
 Priority:  normal       |    Milestone:        
Component:  build        |      Version:  trunk 
 Severity:  normal       |   Resolution:  fixed 
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by phk):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 (In [4042]) Previously, we forced the request to "GET" on all fetches for
 cache
 and this prevented users from implementing "purge on POST" semantics
 by looking up the POST requests and ditching the object found.

 Now we only overwrite the request with "GET" if it is a HEAD, (the
 internal "wantbody" flag tells hos how the response should be composed.)

 The testcase shold probably be elevated to VCL example, with suitable
 footnotes about URL sanitizing etc.

 Fixes #444

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/444#comment:2>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list