Varnish ALWAYS getting index from backend

Dag-Erling Smørgrav des at des.no
Wed Dec 10 14:36:04 CET 2008


Tomasz Leszczyński <plzeton at gmail.com> writes:
> sub vcl_fetch {
>          remove obj.http.Cache-Control;
>          remove obj.http.Pragma;
>          set obj.http.Expires = "Thu, 19 Nov 2010 08:52:00 GMT";
> }

That will change the stored header, but not Varnish's idea of the
object's TTL (which is computed before vcl_fetch is called).  The best
solution is to set the correct time on the backend; second-best is to
set obj.ttl to a non-zero value in vcl_fetch.

DES
-- 
Dag-Erling Smørgrav - des at des.no



More information about the varnish-misc mailing list