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.
Thanks for your help again! 2016-04-27 1:18 GMT+09:00 Kit Chan <chanshu...@gmail.com>: > Similar to the other email thread that is ongoing, you can override cache > control header in read response hook to achieve that > > Sent from my iPhone > >> On Apr 26, 2016, at 8:55 AM, Hiroaki Nakamura <hnaka...@gmail.com> wrote: >> >> Hi all, >> >> I would like to add a hard limit config to contents lifetime. >> I would like to limit (say 30 days) lifetime even when a longer value is set >> in >> the "Cache-Control: s-maxage" response header from the origin server. >> I want to apply this limit when a content is cached. >> >> I looked through >> https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html >> but I cannot find the config for that. >> >> How can we add such a config? >> >> Best regards, >> Hiroaki