trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

Pragma header handled improperly

Open PSUdaemon opened this issue 7 years ago • 2 comments

The Pragma header has no meaning in an HTTP response, yet ATS will not cache an HTTP response from origin with Pragma: no-cache. Additionally, the presence of a Cache-Control header should override any legacy HTTP/1.0 header such as Pragma, but it does not. However, it does appear to override any usage of Expires as expected.

Reference: RFC 7234 Sec 5.4

PSUdaemon avatar Jan 31 '18 17:01 PSUdaemon

@zwoop Are you going to work on this?

bryancall avatar May 10 '21 23:05 bryancall

This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.

github-actions[bot] avatar May 13 '22 02:05 github-actions[bot]

Hi, I have just run into this situation now. Our old origin servers issue the "Pragma: no-cache" header and I am not able to override it as stated above. Is there a fix in the works or a work around? My next step is to test using the rewrite plugin to strip it out and then put it back when served to visitor from cache. I am not allowed to modify the origin server. Thanks much.

rm-header Pragma
add-header Cache-Control "no-cache"

stevyn81 avatar Oct 13 '23 10:10 stevyn81