Make your Website Faster with GZip

 

Gzip is a server side compression which will speed up your website. The speed at which your site loads plays an important factor in your rankings, as Google have publicly stated, they are obsessed with speed, and therefore we need to pay attention if we are serious about climbing the ranks.

There are many ways to speed up your site, from optimising images to clean code, all of which should be done to maximise our page load speeds. To test your site you can use Google’s own page speed insights which will test your site for mobile and desktop while providing you with tips on further optimising your site.

GZip compression not only speeds up your site but is also a good way to save on bandwidth. It is a very simple method to use and the results are fantastic.

To use this method, you just need to answer yes to the following-

1 – My site uses an apache server.
2 – I have or can create an .htaccess file.

Now add the following code to your .htaccess file –

 

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript# Or, compress certain file types by extension:<Files *.html>
SetOutputFilter DEFLATE
</Files>

 

Simple! Enjoy your extra site speed.