Website performance is much talked topic these days but still there are a surprisingly large number of webdevelopers that neglect the impact of site loading time for their SEO, visitor experience and most importantly sales.
Here is a quick tip to improve your website performance score (as
measured by YSlow). It takes literally less then 5 minutes to implement.
*Please note… If you are not confident editing your .htaccess file, contact me here and I will be happy to do it for you
Add these lines to your .htaccess file:
<FilesMatch “\.(ico|jpg|jpeg|png|gif|js|css|swf)$”>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault “access plus 30 days”
</IfModule>
Header unset ETag
FileETag None
</FilesMatch>AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/x-javascript application/x-httpd-php application/rss+xml application/atom_xml text/javascript
What this does is adds far expires header (make sure mod_expires is loaded in your apache config if you have problems) to your static content (images, js, css), turns off ETag headers and compresses files sent to the browser.
This will improve your score by at least a full grade, if not more.
Of course, improving YSlow grade will be just a side effect – your site will feel much quicker for browsing too.
Related posts:











Hi Steve
I have actually 5 sites and I do do source, but I am not sure about this, would you install them for me, and please explain exactly what it does and other tricks to improve traffic I would appreciate.
Thanks
Richard
Hi Richard
Thanks for your comments
If you email with details of the sites you want me to add the .htaccess info too I will check to see if it is possible
To get a deeper understanding of ETags go to
http://www.askapache.com/htaccess/apache-speed-etags.html
Regarding Traffic Tips, check out this post
http://stevewatsononline.com/10-sure-fire-ways-to-get-your-blog-back-on-track
Many thanks
Steve