Commit cc04360304847ead124005dd487364e3b2d7a80d
1 parent
34dd8f31
KTS-2147
"Cannot download or checkout files using Internet Explorer (IE)"
Fixed.
// HTTP/1.0
header("Pragma: no-cache");
This breaks IE7 in SSL mode. A bit of searching shows it's recommended to not send this header.
We do cache control with HTTP/1.1 headers anyway.
Committed By: Kevin
Reviewed By: Conrad
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6883 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
4 deletions
lib/storage/ondiskhashedstoragemanager.inc.php
| ... | ... | @@ -157,11 +157,11 @@ class KTOnDiskHashedStorageManager extends KTStorageManager { |
| 157 | 157 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); |
| 158 | 158 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
| 159 | 159 | // HTTP/1.1 |
| 160 | - header("Cache-Control: no-store, no-cache, must-revalidate"); | |
| 161 | - header("Cache-Control: post-check=0, pre-check=0", false); | |
| 160 | + header("Cache-Control: no-store, no-cache, must-revalidate"); | |
| 161 | + header("Cache-Control: post-check=0, pre-check=0", false); | |
| 162 | 162 | |
| 163 | - // HTTP/1.0 | |
| 164 | - header("Pragma: no-cache"); | |
| 163 | + // HTTP/1.0 | |
| 164 | + // header("Pragma: no-cache"); // Don't send this header! It breaks IE. | |
| 165 | 165 | |
| 166 | 166 | $oFile = new KTFSFileLike($sPath); |
| 167 | 167 | KTFileLikeUtil::send_contents($oFile); | ... | ... |