trafficserver
trafficserver copied to clipboard
Pragma header handled improperly
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
@zwoop Are you going to work on this?
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.
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"