note 55594 added to function.header

From: Date: Mon, 08 Aug 2005 15:01:16 +0000
Subject: note 55594 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-93249@lists.php.net to get a copy of this message
PROBLEM: File downloads work fine with browsers other than Internet Explorer, but when IE is used, the following error message is issued: "Internet Explorer cannot download file from server. Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later." PROBABLE CAUSE: File is being downloaded over a secure connection (SSL, a.k.a. HTTPS protocol) and IE has received a "no-cache" header (as also mentioned by Harry and james at charity dot org). More info on the problem: http://support.microsoft.com/default.aspx?scid=kb;en-us;316431 SOLUTION: The following have worked for me: header('Pragma: private'); header('Cache-control: private, must-revalidate'); or simply header('Pragma: '); header('Cache-control: '); (The first option is probably safer, but that's just a guess.) ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55594 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55594&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55594&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55594&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55594&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55594&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55594&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55594&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93249) next »