cPanel’s Optimize Website feature configures compression for selected response types. Compressing suitable text content can reduce the amount transferred to visitors’ browsers; it does not rewrite or reorganise the website’s content.

Check availability

The feature requires the provider to enable it and the relevant Apache compression module. Check whether a CDN, reverse proxy or application already compresses the responses before adding another configuration.

Configure compression

  1. Log in to cPanel.

  2. Open Software > Optimize Website.

  3. Review the current setting under Compress Content.

  4. Choose Compress the specified MIME types if you want to control the response types.

  5. Enter a space-separated list appropriate for your site, for example:

    text/html text/plain text/xml text/css application/javascript
  6. Click Update Settings.

  7. Check the confirmation.

Disabled turns this configuration off. Compress All Content is available, but is not always preferable: formats such as JPEG, PNG and ZIP are already compressed.

Verify responses

Test representative pages and static resources using the browser’s network tools. Check response headers such as Content-Encoding and transferred sizes.

If responses are not compressed, ask the administrator to check the actual serving stack and configuration. Avoid enabling additional PHP or proxy compression blindly, which can conflict with existing layers. Review sensitive dynamic responses with the application administrator where compression security is relevant.