]> err.no Git - varnish/commit
Add the ability to purge on random request or object headers.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 18 Jan 2009 16:25:54 +0000 (16:25 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 18 Jan 2009 16:25:54 +0000 (16:25 +0000)
commit809553d40b9e5c7a2e08410cbb3412aa80ccb798
tree4155608f8182bc1ba9030d1c1d9f9a4ea4aa381f
parent5d71270d218af104496b504530f954c1988baa96
Add the ability to purge on random request or object headers.

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: svn+ssh://projects.linpro.no/svn/varnish/trunk@3519 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_ban.c
varnish-cache/bin/varnishtest/tests/c00021.vtc