[jifty-devel] Patch for
auto/Jifty/web/templates/__jifty/css/dhandler
Henry Baragar
Henry.Baragar at instantiated.ca
Mon Mar 5 10:54:55 EST 2007
Jesse,
I am surprised that others have not had the problem we have been experiencing
where the default css directives do not work when DevelMode=0. We have
tracked down the problem to be an extraneous blank line at the front of the
compressed css sent to the browser. The solution is to clear Mason's buffer
before sending the compressed css file. Please see the patch below.
Regards,
Henry
--- auto/Jifty/web/templates/__jifty/css/dhandler.bak 2007-03-05
10:32:28.000000000 -0500
+++ auto/Jifty/web/templates/__jifty/css/dhandler 2007-03-05
10:32:45.000000000 -0500
@@ -18,6 +18,7 @@
}
$r->content_type("text/css");
+$m->clear_buffer;
$r->header_out( 'Expires' => HTTP::Date::time2str(time + 31536000) );
# XXX TODO: If we start caching the squished CSS in a file somewhere, we
More information about the jifty-devel
mailing list