note 108138 added to function.header
| From: | noemail at noemailplease | Date: | Sat, 31 Mar 2012 18:54:30 +0000 |
| Subject: | note 108138 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186928@lists.php.net to get a copy of this message | ||
Do not use example provided by "phpnet at holodyn dot com @ 31-Jan-2011 01:01"
He used:
<?php header("Pragma: public"); ?>
and
<?php header("Cache-Control: private",false); ?>
which are the opposite.
He used
<?php header("Expires: 0"); ?>
without knowing how it works.
http://download.oracle.com/docs/cd/E13158_01/alui/wci/docs103/devguide/tsk_pagelets_settingcaching_httpexpires.html
">>>Note: Never use Expires = 0 to prevent caching.<<<
The Expires header is sent by the remote server and passed through to the browser by the Portal
Server. Unless the time on all three machines is synchronized, an Expires=0 header can mistakenly
return cached content. To solve this problem, set the Expires header to a fixed date that is
definitely in the past."
He used
<?php header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); ?>
without knowing what he is doing. If post-check=0 and pre-check=0 equal to zero then it is the same
as both of them are absent
reference: http://blogs.msdn.com/b/ieinternals/archive/2009/07/20/using-post_2d00_check-and-pre_2d00_check-cache-directives.aspx
----
Server IP: 69.147.83.197
Probable Submitter: 68.41.254.20
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- https://master.php.net/note/edit/108138
Del: integrated -- https://master.php.net/note/delete/108138/integrated
Del: useless -- https://master.php.net/note/delete/108138/useless
Del: bad code -- https://master.php.net/note/delete/108138/bad+code
Del: spam -- https://master.php.net/note/delete/108138/spam
Del: non-english -- https://master.php.net/note/delete/108138/non-english
Del: in docs -- https://master.php.net/note/delete/108138/in+docs
Del: other reasons-- https://master.php.net/note/delete/108138
Reject -- https://master.php.net/note/reject/108138
Search -- https://master.php.net/manage/user-notes.php