From 9813023aabfb37256dac4d2eea5574f91f8897e2 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 29 Mar 2017 00:11:51 -0600 Subject: Fix gzip files for Safari * Safari support gzip only if the filename does not end on .gz - so this renames them to .gzip Signed-off-by: Morris Jobke --- core/Controller/CssController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/Controller/CssController.php') diff --git a/core/Controller/CssController.php b/core/Controller/CssController.php index b467d386f98..57197e9999e 100644 --- a/core/Controller/CssController.php +++ b/core/Controller/CssController.php @@ -95,7 +95,7 @@ class CssController extends Controller { if ($encoding !== null && strpos($encoding, 'gzip') !== false) { try { $gzip = true; - return $folder->getFile($fileName . '.gz'); + return $folder->getFile($fileName . '.gzip'); # Safari doesn't like .gz } catch (NotFoundException $e) { // continue } -- cgit v1.2.3