[BUGFIX] FAL: Followup to New dump file to browser 17/27217/2
authorBenjamin Mack <benni@typo3.org>
Fri, 31 Jan 2014 20:05:40 +0000 (21:05 +0100)
committerBenjamin Mack <benni@typo3.org>
Fri, 31 Jan 2014 20:06:14 +0000 (21:06 +0100)
Cache control headers need to be sent for IE8 and
HTTPS combination. See #16491 for more details.

Resolves: #52589
Releases: 6.2
Change-Id: I746820dbbb8ca40a9db7e474ac9aaa7ee3d2fb33
Reviewed-on: https://review.typo3.org/27217
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index 4fab0f5..358d6f9 100644 (file)
@@ -1448,6 +1448,10 @@ class ResourceStorage {
                }
                header('Content-Type: ' . $file->getMimeType());
                header('Content-Length: ' . $file->getSize());
+
+               // Cache-Control header is needed here to solve an issue with browser IE8 and lower
+               // See for more information: http://support.microsoft.com/kb/323308
+               header("Cache-Control: ''");
                header('Last-Modified: ' .
                        gmdate('D, d M Y H:i:s', array_pop($this->driver->getFileInfoByIdentifier($file->getIdentifier(), array('mtime')))) . ' GMT',
                        TRUE,