From 2d9861cdea09098bc3381ffcdbbb5539fb544644 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 28 Feb 2012 23:54:54 +0100 Subject: [PATCH] Force caching to prevent FOUC --- wcfsetup/install.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1