With page load speed becoming a ranking factor in 2010, most of my tasks so far in January have been to look at our websites, see how they perform and make them faster.
Following on from my post toward the end of last year where I recommended tools to review site performance, I’ve been carrying out the tests and taking appropriate actions.
Yahoo has a list of guidelines but in some cases, although they tell you what to do, they don’t tell you how to do it:
Having carried out some research of my own and successfully speeded up a number of our sites, the following are a few tips that will help you to speed up your site based on common issues highlighted by both tools:
Compress Components with GZIP
To compress pages across your site, simply add the following line into your .htaccess file:
php_value output_handler ob_gzhandler
Whilst the above command will work, the following code will sort out GZip Cimpression and the ET tags configuration issues, in fact, it pretty much sorts everything bar using a content delivery network, which is probably only suitable for the biggest of sites on the internet:
Header unset ETag
Leverage Browser Caching
Cache your images, downloads and general site assets by adding the following line to your .htaccess file:
Header set Cache-Control “max-age=2419200, public”