note 52694 deleted from function.header by tularis

From: Date: Fri, 20 Apr 2007 14:46:13 +0000
Subject: note 52694 deleted from function.header by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125665@lists.php.net to get a copy of this message
Note Submitter: com dot gmail at schaefer dot peter ---- Regarding the IE pdf problem, doing the variation of not sending an Accept-Ranges: bytes header seems to make a difference. Strangely enough, some pdfs just work fine without these complications, so maybe changing that header just forced invalidation of the IE cache(I had emptied it, but who knows how IE really works). //header("Accept-Ranges: bytes"); $filename= 'Labels'. date("ymdhis") . '.pdf'; //FIX: IE6 header('Content-type: application/pdf'); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Pragma: public"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); //header("Cache-Control: private"); $pdf->stream( array('Content-Disposition'=>$filename) ); This is a large pdf file. For a smaller pdf file, the straightforward thing worked too: header("Accept-Ranges: bytes"); header("Cache-Control: private"); $pdf->stream(); Weird :-/

« previous php.notes (#125665) next »