Apache 2.0 and newer allow you to compress content before sending it to the visitor’s browser. The types of content to be compressed are specified by MIME type. This feature requires Apache’s mod_deflate to function correctly.
To activate content compression for your website, please login your cPanel and refer to the Software/Service section and click on the Optimize Website icon.
On the Optimize Website page you should select the MIME types which will be compressed. Compression is most efficient on text-based files such as html, xml, js and css. Still, you can enable content compression for every file type.
Be advised that enabling compression on all file types for a media-rich website including lots of images might result in slightly higher CPU consumption. When you are satisfied with your settings click on the Update Settings button.
Be advised that this tool enabled file compression by adding mod_deflate rules into the .htaccess file located under the public_html folder of your hosting account.
As an alternative method you can enable mod_deflate compression for your website by adding the following lines to your .htaccess file: