Purge change...
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Jan 12 15:01:43 CET 2009
Right now we spend CPU&RAM to keep the built hash-string around, in case
we want to hit it with purge_hash later on.
purge_hash was made so that you could purge content on a particular
vhost without affecting other vhosts, but due to the wierd syntax,
it is not very convenient for this purpose.
The proposed change is to add a new purge primitive that takes a
list of (header, regexp) pairs, for instance:
purge Host host3 URL "\.jpg$"
But once you think about it, you can do really wierd things:
purge STATUS 404
purge Set-Cookie "USER=9348395"
Comments welcome...
Poul-Henning
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list