|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-10-23 10:48 UTC] inforbano at gmail dot com
[2016-10-24 16:47 UTC] bwoebi@php.net
[2016-10-24 20:32 UTC] inforbano at gmail dot com
[2016-10-24 21:03 UTC] rasmus@php.net
[2016-10-24 22:39 UTC] inforbano at gmail dot com
[2021-09-09 15:19 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-09-09 15:19 UTC] cmb@php.net
[2021-09-19 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ When function session_start(); is used with default options, PHP generates headers like this: Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache This verbose behavior is wrong for the following reasons. Most PHP-programmers do not need to know anything about caching. Therefore user agents (browsers, proxies, robots...) MUST have rational behavior (with respect to caching) without any special instructions from the server. This is only problem of user agents to understand cookies and to automatically adjust their caching behavior according to their needs. On the other hand, some meticulous PHP-programmers investigate HTTP-headers of their sites to be sure that everything is fine. And in this case they just waste their time to study problems, that are not their. Test script: --------------- <?php session_start(); Expected result: ---------------- No special headers for caching by default. This is like session_cache_limiter(''); is set by default. Actual result: -------------- Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache