Set font cache control to public
authorSascha Greuel <sascha@softcreatr.de>
Fri, 3 Apr 2020 23:08:45 +0000 (01:08 +0200)
committerSascha Greuel <sascha@1-2.dev>
Fri, 3 Apr 2020 23:16:18 +0000 (01:16 +0200)
resolves #3186

wcfsetup/install/files/font/getFont.php

index bd3a55e5021530d93a947f0169cd23efb12d9a1b..8ce3fb91a8083f9f785edbfccc73ca2fc7a17c68 100644 (file)
@@ -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, private');
+                       header('Cache-Control: max-age=31536000, public');
                        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');