Force caching to prevent FOUC
authorAlexander Ebert <ebert@woltlab.com>
Tue, 28 Feb 2012 22:54:54 +0000 (23:54 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 28 Feb 2012 22:54:54 +0000 (23:54 +0100)
wcfsetup/install.php

index 89f368d4e94d9410e5e3aece2926f61ed24bd87b..f26c3d9e7e6a56ceb3534fa8d5f194a8d696e03e 100644 (file)
@@ -733,6 +733,10 @@ function readFileResource($key, $directory) {
                        break;
                }
                
+               header('Expires: '.gmdate('D, d M Y H:i:s', time() + 3600).' GMT');
+               header('Last-Modified: Mon, 26 Jul 1997 05:00:00 GMT');
+               header('Cache-Control: public, max-age=3600');
+               
                readfile($directory . $_GET[$key]);
        }
        exit;