Varnish ALWAYS getting index from backend

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

Tomasz Leszczyński <plzeton at> 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.

Dag-Erling Smørgrav - des at

More information about the varnish-misc mailing list