From: Tim Düsterhus Date: Tue, 14 Jul 2020 15:27:24 +0000 (+0200) Subject: Reduce getFont cache duration to one day X-Git-Tag: 5.3.0_Alpha_1~120^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=16b4a2412bbc4c54a66edd37ae4dcd96fbdf0730;p=GitHub%2FWoltLab%2FWCF.git Reduce getFont cache duration to one day --- diff --git a/wcfsetup/install/files/font/getFont.php b/wcfsetup/install/files/font/getFont.php index 258ca313db..0591980274 100644 --- a/wcfsetup/install/files/font/getFont.php +++ b/wcfsetup/install/files/font/getFont.php @@ -74,9 +74,9 @@ $data = file_get_contents($filename); // allow font fetching from all domains (CORS) header('Access-Control-Allow-Origin: *'); header('Content-Type: ' . $types[$type]); -header('Cache-Control: max-age=31536000, public'); +header('Cache-Control: max-age=86400, public'); header('ETag: ' . $etag); -header('Expires: ' . gmdate("D, d M Y H:i:s", time() + 31536000) . ' GMT'); +header('Expires: ' . gmdate("D, d M Y H:i:s", time() + 86400) . ' GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $filemtime) . ' GMT'); header('Content-Length: ' . strlen($data));