aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-03 16:59:26 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-03 16:59:26 +0000
commit30ada369dc7a386474632bbef096d82ef4195fe8 (patch)
treedf336a0ce8f511b1ab5f86459f4215fd738042d7
parent9a6a29c5f8fd947e9fb015b5c557b15f23ec4d4a (diff)
downloadelgg-30ada369dc7a386474632bbef096d82ef4195fe8.tar.gz
elgg-30ada369dc7a386474632bbef096d82ef4195fe8.tar.bz2
Far future expires header
git-svn-id: https://code.elgg.org/elgg/trunk@3044 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--_css/css.php2
-rw-r--r--_css/js.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/_css/css.php b/_css/css.php
index 7d0821376..b079e5673 100644
--- a/_css/css.php
+++ b/_css/css.php
@@ -35,7 +35,7 @@
$override = true;
header("Content-type: text/css", true);
- header('Expires: ' . date('r',time() + 864000), true);
+ header('Expires: ' . date('r',time() + 86400000), true);
header("Pragma: public", true);
header("Cache-Control: public", true);
// header("Content-Length: " . strlen($default_css));
diff --git a/_css/js.php b/_css/js.php
index 24e6466fc..30613c18d 100644
--- a/_css/js.php
+++ b/_css/js.php
@@ -34,7 +34,7 @@
$viewinput['viewtype'] = $_GET['viewtype'];
header('Content-type: text/javascript');
- header('Expires: ' . date('r',time() + 864000));
+ header('Expires: ' . date('r',time() + 864000000));
header("Pragma: public");
header("Cache-Control: public");
// header("Content-Length: " . strlen($return));