Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
authorshaver@mozilla.com <shaver@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-14 03:57:28 (GMT)
committer shaver@mozilla.com <shaver@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-14 03:57:28 (GMT)
commit90dd23296c54a3c5ede9c4b27f6407c7bbec1f95 (patch)
treee19553b3f2bf2935e3af535f873dce80ee9098b2 /site/app/app_controller.php
parent5b25336049618799c714d3c0ea74821ea3627688 (diff)
Listen, punk, when I say cache, I mean cache. And I'm a little tired of having to tell you about it, to be honest.
git-svn-id: http://svn.mozilla.org/addons/trunk@2140 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index 07801a1..e9d69bc 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -198,7 +198,8 @@ class AppController extends Controller
}
function forceCache() {
- header('Cache-Control: public');
+ header('Cache-Control: public, max-age=' . HOUR);
+ header('Expires: ' . gmdate("D, j M Y H:i:s", time() + HOUR) . " GMT");
}
}
?>