RT 3.6 and Firefox and Expires Header

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@plusw.de

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

Thanks. We’ve already made a similar fix for 3.6.1.