From a11e8ce9bd9d7ed43218358809b74af4ee7dd6b4 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Tue, 3 Dec 2013 23:22:14 -0800 Subject: [PATCH] Enable compression on all pages Dear god. How come I always thought this setting was PHP_INI_SYSTEM?!??! And why has noone ever done this before? --- cached.php | 8 +------- include/prepend.inc | 2 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/cached.php b/cached.php index e94a196de..99cda6a07 100644 --- a/cached.php +++ b/cached.php @@ -37,12 +37,6 @@ if (substr($abs, -3) == ".js" || substr($abs, -5) == ".json") { header("Content-Type: text/css"); } -if (function_exists("ob_gzhandler")) { - ob_start("ob_gzhandler"); - readfile($abs); - ob_end_flush(); -} else { - readfile($abs); -} +readfile($abs); diff --git a/include/prepend.inc b/include/prepend.inc index 80b09bb40..a98e69701 100644 --- a/include/prepend.inc +++ b/include/prepend.inc @@ -1,4 +1,6 @@