set obj.ttl to response header
Tollef Fog Heen
tfheen at varnish-software.com
Mon Mar 22 13:59:17 CET 2010
]] Mahesh Ollalwar
| Is it possible to set obj.ttl to the value getting from a backend
| response header. My application is calculating the TTL value and
| setting a header "upstream-ttl". I'm using below syntax in vcl_fetch
| but it's not working.
No, you need to set it using something which is a number. This will be
possible in a later version.
If you can make the backend just set the Cache control header properly
and then override the header in vcl_fetch, that should do the right
thing.
--
Tollef Fog Heen
Varnish Software
t: +47 21 54 41 73
More information about the varnish-misc
mailing list