aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-10 18:04:22 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-10 18:04:22 +0000
commit382b97b04b2114c73ee2857bd6aa12385f11d203 (patch)
tree00d3e1848c369db5527c6f5deb91c4e61e3ea48f /engine/lib/elgglib.php
parent93964b3dcbd9b9e23ec4068b5a53b53c6639ccb3 (diff)
downloadelgg-382b97b04b2114c73ee2857bd6aa12385f11d203.tar.gz
elgg-382b97b04b2114c73ee2857bd6aa12385f11d203.tar.bz2
Javascript now correctly marked as cacheable
git-svn-id: https://code.elgg.org/elgg/trunk@2432 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 29d761b1c..7afa7f17f 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1937,7 +1937,10 @@
function js_page_handler($page) {
if (is_array($page) && sizeof($page)) {
- header('Content-type: text/javascript');
+ header('Content-type: text/javascript');
+ header('Expires: ' . date('r',time() + 864000));
+ header("Pragma: public");
+ header("Cache-Control: public");
$js = str_replace('.js','',$page[0]);
echo elgg_view('js/' . $js);