You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Tomasz Kuzemko <to...@kuzemko.net> on 2014/01/24 13:40:45 UTC

How to set maximum cache TTL with respect to lower value from headers?

Hello,

is it possible to set a global maximum cache TTL which would respect
Cache-contol: max-age values that are lower? For example, I would like to
have all objects cached for a maximum of 1 day, but if I get max-age: 1h
then I want ATS to respect that. However, if backend responds with max-age:
7d then I want ATS to override this value and revalidate after 1 day.

I tried setting in cache.config:
url_regex=.* revalidate=1d
or
url_regex=.* ttl-in-cache=1d
but these parameters force the TTL value and do not respect lower max-age
from Cache-control header.

--
Best regards,
Tomasz Kuzemko
tomasz@kuzemko.net