note 111283 added to function.header

From: Date: Fri, 01 Feb 2013 18:48:05 +0000
Subject: note 111283 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-193491@lists.php.net to get a copy of this message
a nice NoCache function: <?php function No_Cache() { if(headers_sent()) return FALSE; header('pragma: public'); # HTTP/1.0 header('expires: Mon, 26 Jul 1997 05:00:00 GMT'); @header('last-modified: ' . gmdate('D, d M Y H:i:s') . ' gmt'); # ! @header('cache-control: no-store, no-cache, must-revalidate'); # HTTP/1.1 header('cache-control: private, post-check=0, pre-check=0, max-age=0', FALSE); # HTTP/1.1 header('pragma: no-cache'); # HTTP/1.0 header('expires: 0'); return; } ?> ---- Server IP: 69.147.83.199 Probable Submitter: 31.59.21.250 ---- Manual Page -- http://php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/111283 Del: integrated -- https://master.php.net/note/delete/111283/integrated Del: useless -- https://master.php.net/note/delete/111283/useless Del: bad code -- https://master.php.net/note/delete/111283/bad+code Del: spam -- https://master.php.net/note/delete/111283/spam Del: non-english -- https://master.php.net/note/delete/111283/non-english Del: in docs -- https://master.php.net/note/delete/111283/in+docs Del: other reasons-- https://master.php.net/note/delete/111283 Reject -- https://master.php.net/note/reject/111283 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193491) next »