projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6ff1ae
)
Force caching to prevent FOUC
author
Alexander Ebert
<ebert@woltlab.com>
Tue, 28 Feb 2012 22:54:54 +0000
(23:54 +0100)
committer
Alexander Ebert
<ebert@woltlab.com>
Tue, 28 Feb 2012 22:54:54 +0000
(23:54 +0100)
wcfsetup/install.php
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install.php
b/wcfsetup/install.php
index 89f368d4e94d9410e5e3aece2926f61ed24bd87b..f26c3d9e7e6a56ceb3534fa8d5f194a8d696e03e 100644
(file)
--- 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;