[TYPO3-core] RFC: #16737: sendCacheHeaders: Wrong usage of Pragma: public and no-cache

Georg Kuehnberger georg at georg.org
Mon Dec 13 20:08:01 CET 2010


Hi,

This is an SVN patch request.

Type: Bugfix, No-Brainer

Bugtracker references:
http://bugs.typo3.org/view.php?id=16737

Branches:
Trunk, 4.4, 4.3

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"

Patch provided in http://bugs.typo3.org/view.php?id=16737 and attached here


Notes:
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


Regards Georg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class.tslib_fe.php_444.diff
Type: text/x-diff
Size: 935 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101213/8a184b09/attachment.diff>


More information about the TYPO3-team-core mailing list