Varnish ALWAYS getting index from backend

Tomasz Leszczyński plzeton at gmail.com
Tue Dec 9 23:48:16 CET 2008


Pablo García pisze:

> Have you removed expires header ? Also, you removed those headers, but
> do you specify any expiration ?


Something like that:

sub vcl_fetch {
         remove obj.http.Cache-Control;
         remove obj.http.Pragma;
         set obj.http.Expires = "Thu, 19 Nov 2010 08:52:00 GMT";
}

or like that:

sub vcl_fetch {
         remove obj.http.Cache-Control;
         remove obj.http.Pragma;
         remove obj.http.Expires;
         set obj.http.Expires = "Thu, 19 Nov 2010 08:52:00 GMT";
}

Not work :|



More information about the varnish-misc mailing list