summaryrefslogtreecommitdiffstats
path: root/ajax/maps.ajax.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-05-10 02:17:14 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-05-10 02:17:14 -0700
commit86aac4847705f0a4559400da6c0e9f1aeba5cdf8 (patch)
treec8c43ab196e5a0a4d280ea84152be5d0e061e0c7 /ajax/maps.ajax.php
parent51d99728286212717003009dd5706bb74edcb272 (diff)
downloadpathery-86aac4847705f0a4559400da6c0e9f1aeba5cdf8.tar.xz
Many bugs and PHP notices & warning fixes.
Diffstat (limited to 'ajax/maps.ajax.php')
-rw-r--r--ajax/maps.ajax.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ajax/maps.ajax.php b/ajax/maps.ajax.php
index 4919fb9..210fd1b 100644
--- a/ajax/maps.ajax.php
+++ b/ajax/maps.ajax.php
@@ -31,7 +31,7 @@ if (isset($_GET['mapid'])) {
function sendCacheHeaders() {
$expires = 365*24*60*60;
//TODO: Remove this line once we're confident in data in the mapObject.
- $expires = 120;
+ $expires = 31*24*60*60;
header("Cache-Control: public, maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
header("Content-type: text/javascript");