In message <gpdbov$a5...@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
p...@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.
_______________________________________________
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to