Issue Bug Closed

#24334sendCacheHeaders: Wrong usage of Pragma: public and no-cache

Georg Kühnberger 12/13/10, 19:59 updated 10/02/18, 12:21

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.