In message <[email protected]>, pub c
rawler writes:

>Any idea of how to accomplish the cache exception of these handful of pages?

If you have a short-ish list of URLs, you can simply test for them:

        sub vcl_recv {
                if (req.url ~ "(foo.html|bar.html|baz.html)") {
                        pass;
                }
        }

If the list is long-ish, consider having the webserver mark them
as non-cacheable by adding a HTTP header varnish can check for
instead.  That way the knowledge about cacheability is maintained
with the content.

Of course, you can also mix the two methods...

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

Reply via email to