2016-04-27 1:26 GMT+09:00 Leif Hedstrom <zw...@apache.org>:
>
>> On Apr 26, 2016, at 10:21 AM, Hiroaki Nakamura <hnaka...@gmail.com> wrote:
>>
>> Yes, I understand it now.
>>
>> So what I need to do is:
>> In TS_HTTP_READ_RESPONSE_HDR_HOOK modify Cache-Control: s-maxage if
>> the value is too long.
>>
>
>
> Does  ttl-in-cache=<time>  in cache.config do what you expect?

No, in my use case, the content without the "Cache-Control: s-maxage"
header should not be cached.
Also s-maxage value should be used as cache lifetime if the value is
under the hard limit.

However ttl-in-cache=<time>  in cache.config will cache contents
forcefully with or without
the "Cache-Control: s-maxage" header, and the cache lifetime becomes
the specified <time>
regardless of the s-maxage value.
https://docs.trafficserver.apache.org/en/latest/admin-guide/files/cache.config.en.html#cache-config-format-ttl-in-cache

So for my use case I think I need to modify the value of
"Cache-Control: s-maxage" if it is longer
than the hard limit.

Anyway, thanks for your info!

Reply via email to