Req #73377 [NEW]: Verbose caching instructions by default.
| From: | inforbano at gmail dot com | Date: | Sun, 23 Oct 2016 10:38:44 +0000 |
| Subject: | Req #73377 [NEW]: Verbose caching instructions by default. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-204974@lists.php.net to get a copy of this message | ||
From: inforbano at gmail dot com
Operating system:
PHP version: Irrelevant
Package: PHP options/info functions
Bug Type: Feature/Change Request
Bug description:Verbose caching instructions by default.
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
--
Edit bug report at https://bugs.php.net/bug.php?id=73377&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73377&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73377&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73377&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73377&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73377&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73377&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73377&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73377&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73377&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73377&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73377&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73377&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73377&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73377&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73377&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73377&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73377&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73377&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73377&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73377&r=mysqlcfg