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:
e672401
)
Set font cache control to public
author
Sascha Greuel
<sascha@softcreatr.de>
Fri, 3 Apr 2020 23:08:45 +0000
(
01:08
+0200)
committer
Sascha Greuel
<sascha@1-2.dev>
Fri, 3 Apr 2020 23:16:18 +0000
(
01:16
+0200)
resolves #3186
wcfsetup/install/files/font/getFont.php
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/font/getFont.php
b/wcfsetup/install/files/font/getFont.php
index bd3a55e5021530d93a947f0169cd23efb12d9a1b..8ce3fb91a8083f9f785edbfccc73ca2fc7a17c68 100644
(file)
--- a/
wcfsetup/install/files/font/getFont.php
+++ b/
wcfsetup/install/files/font/getFont.php
@@
-46,7
+46,7
@@
if (!empty($_GET['type'])) {
// allow font fetching from all domains (CORS)
header('Access-Control-Allow-Origin: *');
header('Content-Type: ' . $types[$type]);
- header('Cache-Control: max-age=31536000, p
rivate
');
+ header('Cache-Control: max-age=31536000, p
ublic
');
header('ETag: ' . $etag);
header('Expires: ' . gmdate("D, d M Y H:i:s", time() + 31536000) . ' GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $filemtime) . ' GMT');