hash.purge
Poul-Henning Kamp
phk at phk.freebsd.dk
Tue Jul 8 07:34:30 CEST 2008
In message <949EC45D-893F-490F-81D9-0254FB5ECC3F at F4.ca>, Skye Poier Nott writes
:
>Does hash.purge take a regex in the host section as well, or just the
>url section?
It takes one regexp for the entire hash string, so you can match
against anything you put into the hash.
>ie is this valid (delete all jpg's for all *.bar.com hosts)
>
>hash.purge #.+\.bar\.com#\.jpg$
Yes, except you got the '#' in the wrong side of things:
.+\.bar\.com#\.jpg#
--
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