Bug #24334
closedsendCacheHeaders: Wrong usage of Pragma: public and no-cache
0%
Description
Problem:
Given chache-headers are turned on via config.sendCacheHeaders = 1
class.tslib_fe.php outputs "Pragma: public" which is plain wrong.
Additionally class.tslib_fe.php outputs "Pragma: no-cache" which is depricated since HTTP/1.1.
- "Pragma: public" as http-header-response, never existed in HTTP/1.0 and neighter in HTTP/1.1, as public is implicit, thus should be removed.
- "Pragma: no-cache" is deprecated in HTTP/1.1 and should also be removed, since "Cache-Control: no-cache ..." is returned anyway and correct.
Solution:
- remove "Pragma: public"
- remove "Pragma: no-cache"
Patchfile is attached
INFO:
RFC Hypertext Transfer Protocol -- HTTP/1.0
http://www.ietf.org/rfc/rfc1945.txt
Hypertext Transfer Protocol -- HTTP/1.1
http://www.ietf.org/rfc/rfc2616.txt
(issue imported from #M16737)
Files