diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-15 18:45:35 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-15 18:45:35 +0000 |
commit | fb7ac1b3766c38a7159c9a245d364eb8fb46cd7f (patch) | |
tree | def0e1cee89f135c88943c77a237c8c37a0007a2 /mod | |
parent | 7073c7c2d71202d6f5e6f542d1ace7d8eb93bd09 (diff) | |
download | elgg-fb7ac1b3766c38a7159c9a245d364eb8fb46cd7f.tar.gz elgg-fb7ac1b3766c38a7159c9a245d364eb8fb46cd7f.tar.bz2 |
Caching enhancements
git-svn-id: https://code.elgg.org/elgg/trunk@1949 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile/icon.php | 1 | ||||
-rw-r--r-- | mod/profile/javascript.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/mod/profile/icon.php b/mod/profile/icon.php index 184c1e2c2..f13ec7322 100644 --- a/mod/profile/icon.php +++ b/mod/profile/icon.php @@ -44,6 +44,7 @@ }
header("Content-type: image/jpeg");
+ header('Expires: ' . date('r',time() + 864000));
header("Pragma: public");
header("Cache-Control: public");
echo $contents;
diff --git a/mod/profile/javascript.php b/mod/profile/javascript.php index 973908d6c..e45a56b78 100644 --- a/mod/profile/javascript.php +++ b/mod/profile/javascript.php @@ -13,6 +13,10 @@ // Get engine
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ header("Content-type: text/javascript");
+ header('Expires: ' . date('r',time() + 864000));
+ header("Pragma: public");
+ header("Cache-Control: public");
echo elgg_view('profile/javascript');
?>
\ No newline at end of file |