caching directories

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Apr 8 16:57:46 CEST 2008


In message <F9E7DFEFF6F429418C00F4A02772401C7767FF at vrgex01.vertical.lan>, "Mart
in Abt" writes:
>Hi,
>
>i am new to varnish and i am wondering, if it is possible to exclude
>everything in a directory (including subdirectories) from caching.
>
>It works with single files, like:
>
>if (req.url ~ "/test/README.txt") {
>    pass;
>}
>

	if (req.url ~ "^/test/") {
	    pass;
	}

?

-- 
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