]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
not caching js and css when not served through simple cache right now
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 31 Dec 2010 17:29:39 +0000 (17:29 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 31 Dec 2010 17:29:39 +0000 (17:29 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7795 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index 59e641da29486c6cf946f46d9338c202aaaef56b..be7f1b768ffea16bc55a69b2d3b31b03f5387f64 100644 (file)
@@ -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;
 }