Cache-control: no-cache

Jacob Elder jelder at locamoda.com
Mon Dec 13 17:55:16 CET 2010


Just posting this so it will make it into the mailing list archives, and
hopefully spark a discussion:

The default Varnish config does not honor "no-cache" in Cache-control
headers. It is my personal opinion that it should, but it's easy enough to
add this behavior if desired.

sub vcl_fetch {
    if (beresp.http.cache-control ~ "no-cache") {
        return(pass);
    }
}

-- 
Jacob Elder
@jelder
(646) 535-3379
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20101213/fea54d74/attachment.html>


More information about the varnish-misc mailing list