From 5b969fd069e239e4126b52377518ac98968b1aab Mon Sep 17 00:00:00 2001 From: ffchung Date: Sat, 29 Oct 2011 23:03:06 +0800 Subject: gzip stream problem on Google Chrome --- modules/gallery/controllers/combined.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/gallery/controllers/combined.php b/modules/gallery/controllers/combined.php index ef640bd9..fe177569 100644 --- a/modules/gallery/controllers/combined.php +++ b/modules/gallery/controllers/combined.php @@ -67,6 +67,8 @@ class Combined_Controller extends Controller { if ($use_gzip && $content = $cache->get("{$key}_gz")) { header("Content-Encoding: gzip"); + header("Content-Length: ".strlen($content)); + header("Vary: Accept-Encoding"); } else { // Fall back to non-gzipped if we have to $content = $cache->get($key); -- cgit v1.2.3