summaryrefslogtreecommitdiff
path: root/system/helpers/expires.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2012-08-13 20:23:50 -0700
committerBharat Mediratta <bharat@menalto.com>2012-08-13 20:23:50 -0700
commit4001c1088c51f53a57ddcaa9a56e94f000dd7cdb (patch)
treede4cad32476db78ce1415b0a659df784b6d33eb7 /system/helpers/expires.php
parentd882c1ba78b6ae811abd226dd46446c914e74dd0 (diff)
parenta62e1aaf9d4cf8dfe66e21e8f642fc1b93abc460 (diff)
Merge pull request #72 from gertschi83/https
Allow browsers to cache resources served over HTTPS Fixes #1910
Diffstat (limited to 'system/helpers/expires.php')
-rw-r--r--system/helpers/expires.php4
1 files changed, 2 insertions, 2 deletions
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 = "";'));