From 16b4a2412bbc4c54a66edd37ae4dcd96fbdf0730 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 14 Jul 2020 17:27:24 +0200 Subject: [PATCH] Reduce getFont cache duration to one day --- wcfsetup/install/files/font/getFont.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.20.1