PageSpeed is a Google tool for firefox and apache2 to measure your website’s performance.
http://code.google.com/speed/page-speed/
Today we’ll start playing with the Cache and
- tell your browser to cache static contents until a given expiration time
The following apache directives (samples!)
- activate expiration
- set default expiration to One Month
- set html and css to be requested no more than Once a day
- set images to be requested no more than Once a month
- don’t include etags unless they are still part of the response (eg a proxied request)
ExpiresActive On
ExpiresDefault "access plus 30 days"
Header Set Cache-Control "max-age=0, no-store"
ExpiresByType text/html "access plus 1 day"
ExpiresByType text/css "access plus 1 day"
ExpiresByType text/javascript "access plus 1 day"
ExpiresByType application/javascript "access plus 1 day"
ExpiresByType application/x-javascript "access plus 1 day"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 day"
FileETag none