aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-31 17:29:39 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-31 17:29:39 +0000
commited8487f155047c79d427e25c32cb93cd1cbcc3ac (patch)
treeb80bdd57a2665e9a3660f1b3cc7d1935b46cef06
parent413495dbecd52a3f61735269d84f623df4954281 (diff)
downloadelgg-ed8487f155047c79d427e25c32cb93cd1cbcc3ac.tar.gz
elgg-ed8487f155047c79d427e25c32cb93cd1cbcc3ac.tar.bz2
not caching js and css when not served through simple cache right now
git-svn-id: http://code.elgg.org/elgg/trunk@7795 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/elgglib.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 59e641da2..be7f1b768 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -2164,10 +2164,12 @@ function js_page_handler($page) {
$return = elgg_view('js/' . $js);
header('Content-type: text/javascript');
- header('Expires: ' . date('r', time() + 864000));
- header("Pragma: public");
- header("Cache-Control: public");
- header("Content-Length: " . strlen($return));
+
+ // @todo should js be cached when simple cache turned off
+ //header('Expires: ' . date('r', time() + 864000));
+ //header("Pragma: public");
+ //header("Cache-Control: public");
+ //header("Content-Length: " . strlen($return));
echo $return;
}
@@ -2193,9 +2195,11 @@ function css_page_handler($page) {
$return = elgg_view("css/$css");
header("Content-type: text/css", true);
- header('Expires: ' . date('r', time() + 86400000), true);
- header("Pragma: public", true);
- header("Cache-Control: public", true);
+
+ // @todo should css be cached when simple cache is turned off
+ //header('Expires: ' . date('r', time() + 86400000), true);
+ //header("Pragma: public", true);
+ //header("Cache-Control: public", true);
echo $return;
}