diff options
author | Tony Fung <ffchung2002@yahoo.com.hk> | 2012-06-05 11:16:37 +0800 |
---|---|---|
committer | Tony Fung <ffchung2002@yahoo.com.hk> | 2012-06-05 11:16:37 +0800 |
commit | 6fbea19b352f880a6241dd359336ace5a4f26d22 (patch) | |
tree | 62d5e5cf5d6c39051788d8651e92e5290c574962 /modules/gallery/controllers | |
parent | 79c00f080ea193ef88f601a6523926d281c39cf0 (diff) |
Force Turn off the compress as most image file already compressed.
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r-- | modules/gallery/controllers/file_proxy.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php index 47def436..6c5419e8 100644 --- a/modules/gallery/controllers/file_proxy.php +++ b/modules/gallery/controllers/file_proxy.php @@ -29,6 +29,12 @@ class File_Proxy_Controller extends Controller { const ALLOW_PRIVATE_GALLERY = true; public function __call($function, $args) { + + // Force Turn off the compress as most image file already compressed. + // And the compress will slow down the response. + if(ini_get('zlib.output_compression')) + ini_set('zlib.output_compression', 'Off'); + // request_uri: gallery3/var/albums/foo/bar.jpg?m=1234 $request_uri = rawurldecode(Input::instance()->server("REQUEST_URI")); |