You may have noticed in Google’s PageSpeed Insights that some websites are flagged up for not enabling compression, as seen below.
WHAT EXACTLY IS GZIP COMPRESSION?
The simple’s way to explain Gzip compression is by imagining you ordered a new dinner table. Once it arrives it will be packaged with multiple parts that you will need to put all the pieces together to build the table. Gzip compression works in a similar way but with computer bytes, the server will compress streams of bytes such as spacing within HTML, CSS or JS files and send them across the web. Once the files are downloaded by your browser, the browser will uncompress these files. This simple feature can yield significant page speed improvements and reduction to page size.This simple feature can yield significant page speed improvements and reduction to page size which can help improve SEO performance.
Enabling Gzip Compression with .htaccess
The code below should be inserted into your .htaccess file that usually lives in the root of your website.
If your website is hosted with us you won’t need to do anything. Gzip compression is enabled by default for all our customers, therefore no technical knowledge or changes are required to enable this feature.