[Jifty-commit] r4900 - in jifty/trunk:
lib/Jifty/Plugin/CompressedCSSandJS
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Jan 22 13:42:34 EST 2008
Author: jesse
Date: Tue Jan 22 13:42:34 2008
New Revision: 4900
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/CompressedCSSandJS/Dispatcher.pm
Log:
r75538 at pinglin: jesse | 2008-01-22 13:40:40 -0500
* Compressed CSS and JS caching backout
Modified: jifty/trunk/lib/Jifty/Plugin/CompressedCSSandJS/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/CompressedCSSandJS/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/CompressedCSSandJS/Dispatcher.pm Tue Jan 22 13:42:34 2008
@@ -41,11 +41,8 @@
return;
}
-
Jifty->handler->apache->content_type("application/x-javascript");
- Jifty->handler->apache->header_out( 'Cache-Control' => 'max-age=259200, public' );
- Jifty->handler->apache->header_out( Expires => HTTP::Date::time2str( time() + 31536000 ) ) ; # Expire in a year
- Jifty->handler->apache->header_out( 'Last-Modified' => HTTP::Date::time2str($^T) );
+ Jifty->handler->apache->header_out( 'Expires' => HTTP::Date::time2str( time + 31536000 ) );
# XXX TODO: If we start caching the squished JS in a file somewhere, we
# can have the static handler serve it, which would take care of gzipping
@@ -86,9 +83,7 @@
}
Jifty->handler->apache->content_type("text/css");
- Jifty->handler->apache->header_out( 'Cache-Control' => 'max-age=259200, public' );
- Jifty->handler->apache->header_out( Expires => HTTP::Date::time2str( time() + 31536000 ) ) ; # Expire in a year
- Jifty->handler->apache->header_out( 'Last-Modified' => HTTP::Date::time2str($^T) );
+ Jifty->handler->apache->header_out( 'Expires' => HTTP::Date::time2str( time + 31536000 ) );
# XXX TODO: If we start caching the squished CSS in a file somewhere, we
# can have the static handler serve it, which would take care of gzipping
More information about the Jifty-commit
mailing list