Enabling Static Compression for your website

One of the basic rules to improve the performance of your website is to ‘send as little as possible’ from the server to the browser. One way to do this is enabling http compression on the web server.

What is HTTP compression?

Http compression reduces the size of the files sent from the server to the browser, by sending the files in a compressed format

The server evaluates the browser “Accept Encoding” header, this is how the browser specifies to the server that it can handle compressed content. If the server finds this header in the request it will send its response as compressed content. If the server gets a request where the client does not support compression, the server will send the response as normal content.
This ensures a vast improvement on page loading speeds helping to make the browsing experience for visitors to your website a pleasant one.
WebSitePanel (WSP) for Windows hosting

Static compression is enabled on all sites by default on WebSitePanel. It speeds up websites and helps with SEO as Google uses it for scoring a site.

Other performance tweaks that are enabled are Etags, expire headers tweaks as well to assist in SEO, and Wincache to speed up PHP websites.

cPanel for Linux hosting

By default site compression is set to off globally for cPanel, however cPanel provides a section for customers to control the compression feature themselves as required.

On the main cPanel landing page, select Optimize Website under the Software and Services section.

Select the compression option you require and Update Settings.

Was this article helpful?

Related Articles