What I Learned Today

I took some time out today to speed up SpeakerRate even more. I focused today on making Apache serve files better.

I can't believe that mod_expires isn't enabled on Ubuntu's Apache package by default, but it's not, so to make sure your assets have a far future Expires setting, you need to enable it, usually like so: a2enmod expires.

mod_deflate is enabled, but doesn't cover JavaScript or CSS. This article on mod_deflate helped me figure out what to do there. Note that the article misses the content type application/javascript and it'll help to add that.

Lastly, make sure ETags are on for your assets:

FileETag MTime Size

Published: 10 Apr 2009