Skip to content

Commit a11e8ce

Browse files
committed
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?
1 parent 9b1c374 commit a11e8ce

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

cached.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@
3737
header("Content-Type: text/css");
3838
}
3939

40-
if (function_exists("ob_gzhandler")) {
41-
ob_start("ob_gzhandler");
42-
readfile($abs);
43-
ob_end_flush();
44-
} else {
45-
readfile($abs);
46-
}
40+
readfile($abs);
4741

4842

include/prepend.inc

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php // -*- C++ -*-
2+
// Compress all pages, if ext/zlib is available on the mirror
3+
ini_set("zlib.output_compression", 1);
24

35
// $Id$
46

0 commit comments

Comments
 (0)