A similar concept is available for your website. This is very handy when it comes to the speed of your page, because the majority of people are still using windows internet explorer as their default browser. Chrome is faster, Firefox, Opera and Safari are all much better, with good old IE being the slowest.

I have come across a few different snippets of code whilst researching this post (you will know I'm no programmer), but have decided to re-post a snippet of code from a google employee on a help thread. This is the code you need to add to your htaccess file:
# compress the files
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
# removes some bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
This includes any bugs which have been known to crop up in Firefox, for example. Try it out, and de-bug in Firebug's pagespeed plugin. Let me know any comments/suggestions in the comments below guys!
Are you trying to make your website better for the search engines? Contact me at Barcelona SEO for a chat about your site. I also offer SEO Training in Barcelona if you'd prefer a more hands on approach.
No comments:
Post a Comment