1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

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?
This commit is contained in:
Hannes Magnusson
2013-12-03 23:22:14 -08:00
parent 9b1c374d0d
commit a11e8ce9bd
2 changed files with 3 additions and 7 deletions

View File

@@ -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);

View File

@@ -1,4 +1,6 @@
<?php // -*- C++ -*-
// Compress all pages, if ext/zlib is available on the mirror
ini_set("zlib.output_compression", 1);
// $Id$