In message <[EMAIL PROTECTED]>, Patrick Giagnocavo writ
es:
>Can I put a regexp in the vcl_fetch routine? Just add something like
>this to the stock vcl.conf:
>
>sub vcl_fetch {
> if (req.url - "/.css|.gif|.jpg|.mp3|.swf/") {
if (req.url ~ "\.css|\.gif|\.jpg|\.mp3|\.svf") {
If there are no tracker suffixes, it will be faster if you
anchor the regexps to the tail end of the url:
if (req.url ~ "\.css$|\.gif$|\.jpg$|\.mp3$|\.svf$") {
Other than that, yes, it should work just fine.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | 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
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc