What is the Optimize Website option in cPanel

cPanel Tutorials, FAQs, How To Guides
Over 75 different hosting features

Automatically compress specified types

Updated: September 6, 2022
By: RSH Web Editorial Staff
cPanel Tutorials

Software > Optimize Website

The Optimize Website feature allows you to configure your website to automatically compress specified types of content within Visitors browsers

Optimize Website

Your system administrator must enable the mod_deflate Apache module for this interface to appear in cPanel.

Manage compression

To compress all of your website’s content, perform the following steps:

1) Select Compress All Content.

2) Click Update Settings.

To disable compression of your website’s content, perform the following steps:

1) Select Disabled.

2) Click Update Settings.

To specify a list of types of content to compress, perform the following steps:

1) Select the Compress the specified MIME types option.

2) In the Mime Types text box, enter a space-separated list of the types of content that you wish to compress (for example, text/html text/plain text/xml).

Note: Image file formats (for example, .jpg and .png) already compress data. Do not include any image file formats in the list.
Apache will compress PHP content if you enable the zlib.output_compression setting in cPanel’s MultiPHP INI Editor interface
cPanel >> Home >> Software >> MultiPHP INI Editor
For more information, see List of internet media types.

3) Click Update Settings.

Note: cPanel saves your settings to a .htaccess file in your home directory. Your system administrator customizes these settings with the Apache FileMatch directive.

Additional information

For more information about the mod_deflate module, which handles website content compression, read the documentation for your server’s version of Apache

The Stats sidebar in cPanel’s Home interface displays your server’s version of Apache.

Tweet  Share  Pin  Tumble  Email

We welcome your comments, questions, corrections and additional information relating to this article. Please be aware that off-topic comments will be deleted.
If you need specific help with your account, feel free to contact us anytime
Thank you

More Articles Of Interest

RSH Web Services is a leading web hosting provider with the most reliable, secure and fast service at affordable prices. We serve small businesses, large businesses and everything in-between. Our goal is to bring you the best value for your money with all of our website packages