Am I going crazy?

Tollef Fog Heen tfheen at varnish-software.com
Tue Aug 9 13:42:04 CEST 2011


]] Roberto O. Fernández Crisial 

| I think I'm going crazy. I'm trying to cache some object but I'm getting
| beresp.ttl as negative value.
| 
| In vcl_fetch() I have:
| 
| unset beresp.http.Cache-Control;
| unset beresp.http.Expires;

These are evaluated before vcl_fetch, so you just need to set
beresp.ttl, not remove the headers.

Regards,
-- 
Tollef Fog Heen
Varnish Software
t: +47 21 98 92 64




More information about the varnish-misc mailing list