From: Alexander Ebert Date: Tue, 28 Feb 2012 22:54:54 +0000 (+0100) Subject: Force caching to prevent FOUC X-Git-Tag: 2.0.0_Beta_1~1294^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d9861cdea09098bc3381ffcdbbb5539fb544644;p=GitHub%2FWoltLab%2FWCF.git Force caching to prevent FOUC --- diff --git a/wcfsetup/install.php b/wcfsetup/install.php index 89f368d4e9..f26c3d9e7e 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -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;