• Tollef Fog Heen's avatar
    Merge r3519: Add the ability to purge on random request or object headers. · 4f818725
    Tollef Fog Heen authored
    For instance:
    
            purge req.http.host ~ www.foo.com && req.url ~ "\.png$"
            purge obj.http.set-cookie ~ USER=383839
    
    Now, why would you want purge on request headers and not object headers ?
    
    Simple, some information the object does not have, the Host: header is
    a good example.
    
    Assuming that the Host: header is part of the hash we use to lookup
    an object (as is the default), we can avoid copying that field into
    the object (saving memory: O(nObjects)) by using the request value
    to purge against.
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@3708 d4fa192b-c00b-0410-8231-f00ffab90ce4
    4f818725
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
man Loading commit data...
redhat Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
varnishapi.pc.in Loading commit data...