Solution for downloadproblems with IE
Posted: 30 Dec 2009, 23:42
I have had many complaints lately that my files were not downloadable with IE. The error message was:
I tried to follow this by making changes to phocadownload.php as follows starting at line 86:
And lo and behold, all problems have gone. (other browsers will stay ok).
Henk
After some googleing I found:http://support.microsoft.com/?kbid=317208Internet Explorer cannot download File.doc from ServerName.
Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found. Please try again later."
I tried to follow this by making changes to phocadownload.php as follows starting at line 86:
Code: Select all
// header("Cache-Control: public, must-revalidate");
// header('Cache-Control: pre-check=0, post-check=0, max-age=0');
// header("Pragma: no-cache");
// header("Expires: 0");
$expires = 60*60*24*14;
header("Pragma: public");
header("Cache-Control: maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
Henk