note 72652 added to function.header

From: Date: Sun, 28 Jan 2007 15:14:18 +0000
Subject: note 72652 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-122287@lists.php.net to get a copy of this message
As far as I can tell IE 6 (and presumably earlier versions) will never cache a file that is obtained by content negotiation. For example, the MultiViews option in Apache. Either the Vary or TCN return header is causing some trigger in IE and stopping it caching the files. This behaviour is fixed in IE 7 but I know the vast majority of users may well not be using IE 7, especially in a corporate environment. Also I don't think you can suppress these headers from PHP since they are added by apache *after* php processes the file. You can suppress them with mod_headers but then you are interfering with the normal operation of the content negotiation and your files may inadvertantly be cached by proxy servers along the route somewhere. And even if you dont mind them being cached by a proxy server they may be served to a client that doesn't want to accept that particular content-type. ---- Server IP: 83.138.144.80 Probable Submitter: 82.41.227.125 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/72652 Del: integrated -- https://master.php.net/note/delete/72652/integrated Del: useless -- https://master.php.net/note/delete/72652/useless Del: bad code -- https://master.php.net/note/delete/72652/bad+code Del: spam -- https://master.php.net/note/delete/72652/spam Del: non-english -- https://master.php.net/note/delete/72652/non-english Del: in docs -- https://master.php.net/note/delete/72652/in+docs Del: other reasons-- https://master.php.net/note/delete/72652 Reject -- https://master.php.net/note/reject/72652 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122287) next »