purge_hash and regular expressions
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Mar 13 11:17:55 CET 2009
In message <gpdbov$a5n$1 at ger.gmane.org>, Lapo Luchini writes:
>Hi there.
>I think purge_hash is quite nice, but to be easier to use from VCL code
>it would be nice to have a function to "regexp-ize" a constant string,
In the new purge stuff, you can use comparisons in addition to regexp
matching:
purge req.url == "index.html" && req.http.host ~ "foo.com"
--
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