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

Jesse Vincent jesse at bestpractical.com
Wed Jul 19 06:44:42 EDT 2006




On Wed, Jul 19, 2006 at 10:58:43AM +0200, Rolf Schaufelberger wrote:
> 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.


> <%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
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
> 
> 
> We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
> 

-- 



More information about the rt-users mailing list