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:
@@ -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);
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?php // -*- C++ -*-
|
||||
// Compress all pages, if ext/zlib is available on the mirror
|
||||
ini_set("zlib.output_compression", 1);
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
Reference in New Issue
Block a user