note 69130 added to function.header

From: Date: Thu, 24 Aug 2006 07:38:55 +0000
Subject: note 69130 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-116252@lists.php.net to get a copy of this message
Hello, i have found a working method for IE Cache BUG, it's not the best but it is working on all IE's in our Company.. i send only the http/1.x 205 OK header additionaly to the rest of the anti cache bug header things (; and it is working! (: <?php //[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) if(!strpos(strtolower($_SERVER[HTTP_USER_AGENT]), "msie") === FALSE) { header("HTTP/1.x 205 OK"); } else { header("HTTP/1.x 200 OK"); } header("Pragma: no-cache"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Datum aus Vergangenheit //header("Expires: -1"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // immer geändert //header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: no-cache, cachehack=".time()); header("Cache-Control: no-store, must-revalidate"); header("Cache-Control: post-check=-1, pre-check=-1", false); ?> ---- Server IP: 212.124.37.9 Probable Submitter: 62.226.223.154 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/69130 Del: integrated -- https://master.php.net/note/delete/69130/integrated Del: useless -- https://master.php.net/note/delete/69130/useless Del: bad code -- https://master.php.net/note/delete/69130/bad+code Del: spam -- https://master.php.net/note/delete/69130/spam Del: non-english -- https://master.php.net/note/delete/69130/non-english Del: in docs -- https://master.php.net/note/delete/69130/in+docs Del: other reasons-- https://master.php.net/note/delete/69130 Reject -- https://master.php.net/note/reject/69130 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116252) next »