From 93964b3dcbd9b9e23ec4068b5a53b53c6639ccb3 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 10 Nov 2008 17:57:33 +0000 Subject: Fixes #541: CSS Now not being cached. Error is being caused somewhere in the elgg framework which prevents pragma caching from working... not sure what git-svn-id: https://code.elgg.org/elgg/trunk@2431 36083f99-b078-4883-b0ff-0f9b5a30f544 --- _css/css.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '_css/css.php') diff --git a/_css/css.php b/_css/css.php index 30b179d16..485ca8774 100644 --- a/_css/css.php +++ b/_css/css.php @@ -10,13 +10,13 @@ * @copyright Curverider Ltd 2008 * @link http://elgg.org/ */ - - header("Content-type: text/css"); - header('Expires: ' . date('r',time() + 864000)); - header("Pragma: public"); - header("Cache-Control: public"); - require_once(dirname(dirname(__FILE__)) . "/engine/start.php"); + require_once(dirname(dirname(__FILE__)) . "/engine/start.php"); + + 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"); -- cgit v1.2.3