[rt-users] RT 3.6 and Firefox and Expires Header

Rolf Schaufelberger rs at plusw.de
Wed Jul 19 04:58:43 EDT 2006


Hi, 

I've just  installed rt3.6  and saw a lot of requests done by Firefox. Looking 
a bit deeper  at it I saw, that it was fetching all the .css, .js and images 
all the time. Looking at the cache I saw, the 'Expires' date was set on 
1970-... . So I changed my autohandler in NoAuth/css to 

<%once>
use HTTP::Date;
</%once>
<%init>
$r->content_type('text/css');
$r->header_out('Expires', HTTP::Date::time2str (time + 180 * 24*3600 ));
$m->call_next();
return();
</%init>

and in NoAuth/js accordingly and now Firefox renders the pages  much faster !
Maybe this helps somebody else.

Regards

plusW
Rolf Schaufelberger 
rs at plusw.de




More information about the rt-users mailing list