[jifty-devel] Patch for
auto/Jifty/web/templates/__jifty/css/dhandler
Henry Baragar
Henry.Baragar at instantiated.ca
Tue Mar 6 15:42:16 EST 2007
Jesse,
A similar patch is required for the js/dhandler.
Regards,
Henry
On Monday, March 05 2007 10:54 am, Henry Baragar wrote:
> 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
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
More information about the jifty-devel
mailing list