From ed8487f155047c79d427e25c32cb93cd1cbcc3ac Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 31 Dec 2010 17:29:39 +0000 Subject: 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 --- engine/lib/elgglib.php | 18 +++++++++++------- 1 file 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; } -- cgit v1.2.3