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 --- system/helpers/expires.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/helpers') diff --git a/system/helpers/expires.php b/system/helpers/expires.php index d510ba7c..a3e01b8e 100644 --- a/system/helpers/expires.php +++ b/system/helpers/expires.php @@ -31,7 +31,7 @@ class expires_Core { header('Expires: '.gmdate('D, d M Y H:i:s T', $expires)); // HTTP 1.1 - header('Cache-Control: max-age='.$seconds); + header('Cache-Control: public,max-age='.$seconds); return $expires; } @@ -94,7 +94,7 @@ class expires_Core { header('Expires: '.gmdate('D, d M Y H:i:s T', $expires)); // HTTP 1.1 - header('Cache-Control: max-age='.$seconds); + header('Cache-Control: public,max-age='.$seconds); // Clear any output Event::add('system.display', create_function('', 'Kohana::$output = "";')); -- cgit v1.2.3