You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "david187 (via GitHub)" <gi...@apache.org> on 2023/04/12 07:56:06 UTC

[GitHub] [trafficserver] david187 commented on issue #9596: "Cache-Control" header and "Age" header are removed by ESI module

david187 commented on issue #9596:
URL: https://github.com/apache/trafficserver/issues/9596#issuecomment-1504829629

   The reason of remove these headers is?
   
   I can access and copy the "Cache-Control" header as "X-Cache-Control" during TS_LUA_HOOK_READ_RESPONSE_HDR hook.
   However, if i restore the "X-Cache-Control" as "Cache-Control" during TS_LUA_HOOK_SEND_RESPONSE_HDR. it will be removed. ( Although I can restore at the upper layer) 
   
   However, the age header seem can not access by ts.cached_response.header / ts.server_response.header in lua plugin. I think it is useful for multiple layer caching.
   
   Temporarily, I am trying to add a timestamp header to calculate the age.
   
   ===
   > We can either add an option to stop it from happening.
   can add a new options at next version?


-- 
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: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org