summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorffchung <ffchung2002@yahoo.com.hk>2011-10-29 23:03:06 +0800
committerffchung <ffchung2002@yahoo.com.hk>2011-10-29 23:03:06 +0800
commit5b969fd069e239e4126b52377518ac98968b1aab (patch)
tree7a36a6f1137127a710626d9aea0bd96929dcc86c
parent4f370b6c237e85d5daa84edcc7d46990ea473b19 (diff)
gzip stream problem on Google Chrome
-rw-r--r--modules/gallery/controllers/combined.php2
1 files changed, 2 insertions, 0 deletions
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);