randall commented on issue #9081: URL: https://github.com/apache/trafficserver/issues/9081#issuecomment-1256403745
Your best bet here would be to not use `cache.config` and use remap.config + [header_rewrite](https://docs.trafficserver.apache.org/en/8.1.x/admin-guide/plugins/header_rewrite.en.html?highlight=header_rewrite) to control cache-control headers. and doing something like this in header_rewrite: ``` cond %{READ_RESPONSE_HDR_HOOK} [AND] cond %{HEADER:Cache-Control} ="" [AND] cond %{STATUS} >199 [AND] cond %{STATUS} <400 set-header Cache-Control "max-age=300, public" ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
