diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-11-24 11:21:32 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-11-24 11:21:32 -0800 |
commit | 47fdf1e35abbc37bbb24fcda4222e92202d2d0e4 (patch) | |
tree | da44f0cc744b5ff72d7e12fadbb0b6717f5616ff /modules | |
parent | cb98db1bcf794c07166e0c198a6b20dbac8756a0 (diff) |
Move the Content-Length header into the main block, fix some formatting.
Follow-on to 5b969fd069e239e4126b52377518ac98968b1aab which is a fix for
#1802.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/controllers/combined.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/combined.php b/modules/gallery/controllers/combined.php index fe177569..5c192b60 100644 --- a/modules/gallery/controllers/combined.php +++ b/modules/gallery/controllers/combined.php @@ -67,7 +67,6 @@ 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 @@ -85,8 +84,9 @@ class Combined_Controller extends Controller { } header("Expires: Tue, 19 Jan 2038 00:00:00 GMT"); header("Cache-Control: max-age=2678400"); - header('Pragma: public'); + header("Pragma: public"); header("Last-Modified: " . gmdate("D, d M Y H:i:s T", time())); + header("Content-Length: " . strlen($content)); Kohana::close_buffers(false); print $content; |