Doc #60516 [NEW]: Bad Cache-Control header causes IE to rapidly re-download

From: Date: Tue, 13 Dec 2011 23:21:28 +0000
Subject: Doc #60516 [NEW]: Bad Cache-Control header causes IE to rapidly re-download
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7653@lists.php.net to get a copy of this message
From: Operating system: Windows PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Bad Cache-Control header causes IE to rapidly re-download Description: ------------ --- From manual page: http://www.php.net/function.readfile#refsect1-function.readfile-examples --- This is a documentation problem. The header 'Cache-Control: must-revalidate, post-check=0, pre-check=0' in the example can cause MSIE to rapidly re-download, wasting massive bandwith in the worst case (in my case one original request for a 14 MB file caused 469 automatic subsequent downloads by MSIE). It would be best to remove that header from the example. Background info can be found here: http://blogs.msdn.com/b/ie/archive/2006/06/01/613132.aspx (It does NOT only affect IE 7 Beta 2 as the article may make it seem. I was able to verify the problem in IE 9). Test script: --------------- Just the example script from the docs with any file. Expected result: ---------------- The file should be downloaded only once per request. Actual result: -------------- One original request for a 14 MB file caused 469 automatic subsequent downloads by MSIE when the 'Cache-Control: must-revalidate, post-check=0, pre-check=0' header was set. -- Edit bug report at https://bugs.php.net/bug.php?id=60516&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60516&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60516&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60516&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60516&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60516&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60516&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60516&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60516&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60516&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60516&r=support Expected behavior: https://bugs.php.net/fix.php?id=60516&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60516&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60516&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60516&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60516&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60516&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60516&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60516&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60516&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60516&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60516&r=mysqlcfg

« previous php.doc.bugs (#7653) next »