diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-10 18:35:13 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-10 18:35:13 +0000 |
commit | a2e60f2a4853e0776c68231efac4d3b77ff0f4b8 (patch) | |
tree | 443cc31568a3432dae394bb46f2c79448b931bd1 /_css | |
parent | 382b97b04b2114c73ee2857bd6aa12385f11d203 (diff) | |
download | elgg-a2e60f2a4853e0776c68231efac4d3b77ff0f4b8.tar.gz elgg-a2e60f2a4853e0776c68231efac4d3b77ff0f4b8.tar.bz2 |
Content length headers on JS and css
git-svn-id: https://code.elgg.org/elgg/trunk@2433 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to '_css')
-rw-r--r-- | _css/css.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/_css/css.php b/_css/css.php index 485ca8774..af8b10f36 100644 --- a/_css/css.php +++ b/_css/css.php @@ -12,14 +12,15 @@ */
require_once(dirname(dirname(__FILE__)) . "/engine/start.php"); + + $default_css = elgg_view("css"); header("Content-type: text/css", true); header('Expires: ' . date('r',time() + 864000), true); header("Pragma: public", true); header("Cache-Control: public", true); -
- $default_css = elgg_view("css");
-
+ header("Content-Length: " . strlen($default_css));
+
echo $default_css;
?>
\ No newline at end of file |