Which is your PageSpeed?

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

  1. tell your browser to cache static contents until a given expiration time

The following apache directives (samples!)

  1. activate expiration
  2. set default expiration to One Month
  3. set html and css to be requested no more than Once a day
  4. set images to be requested no more than Once a month
  5. 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

Lascia un commento