From a62e1aaf9d4cf8dfe66e21e8f642fc1b93abc460 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Sat, 11 Aug 2012 18:09:03 +0200 Subject: the HTTP header Cache-Control must contain "public" in order to allow caching of resources when HTTPS is used --- modules/gallery/controllers/combined.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/gallery/controllers') diff --git a/modules/gallery/controllers/combined.php b/modules/gallery/controllers/combined.php index cd84cb42..80ae1e2d 100644 --- a/modules/gallery/controllers/combined.php +++ b/modules/gallery/controllers/combined.php @@ -50,7 +50,7 @@ class Combined_Controller extends Controller { if ($input->server("HTTP_IF_MODIFIED_SINCE")) { header('HTTP/1.0 304 Not Modified'); header("Expires: Tue, 19 Jan 2038 00:00:00 GMT"); - header("Cache-Control: max-age=2678400"); + header("Cache-Control: public,max-age=2678400"); header('Pragma: public'); Kohana::close_buffers(false); return ""; @@ -83,7 +83,7 @@ class Combined_Controller extends Controller { header("Content-Type: text/css; charset=UTF-8"); } header("Expires: Tue, 19 Jan 2038 00:00:00 GMT"); - header("Cache-Control: max-age=2678400"); + header("Cache-Control: public,max-age=2678400"); header("Pragma: public"); header("Last-Modified: " . gmdate("D, d M Y H:i:s T", time())); header("Content-Length: " . strlen($content)); -- cgit v1.2.3