
Start with a public page and see what the browser actually downloads. Compression can make HTML, CSS and JavaScript smaller in transit. If those files are already compressed, you can leave the setting alone and look for other performance gains.
1. Check a real page in browser developer tools
- Open the page while signed out. In your browser’s developer tools, open Network, select Disable cache and reload with the panel open.
- Choose the HTML document and open Headers. Under Response Headers, look for
Content-Encoding. The valuesgzipandbrindicate compression. - Record that value and the transferred size. Do the same for one sizeable CSS or JavaScript file. Use responses with a fresh
200status so you can compare like for like.
2. Use response status and type to interpret the result
If a request shows 304, from disk cache or from memory cache, the browser reused content. Test a fresh download before comparing file sizes. Leave an already-compressed WebP image or ZIP file out of the comparison.
If a fresh text response already has an encoding and the page works, use those measurements as your baseline. An uncompressed response with only a few bytes of content may be too small for compression to be worthwhile.
3. Find which layer serves the public response
If you have a CDN, first check its compression settings and whether the header already shows br or gzip. If Optimize Website is missing, share a sample URL and the response headers with support so they can tell you how compression is managed for your service.
4. Review the controls in cPanel Optimize Website
On some accounts, cPanel provides Software → Optimize Website. If it appears, note the current option. The tool can compress selected content types using a space-separated list. Use the response’s actual Content-Type to identify a suitable text file. For instance, a stylesheet usually uses text/css.
5. Change one setting and retest
- Keep a record of the current selection and the tested URLs. Enable the supported option for the text resources you want to check and save it.
- Reload those same resources with the cache disabled. If a CDN still serves a cached copy, clear the affected URL’s cache if your CDN supports that option, then retry.
- Check a normal visit to the page as well. Confirm the CSS and JavaScript still load and that any affected form or sign-in still works.
6. Separate CDN cache results from hosting changes
A cached public response can retain its old headers after the hosting setting changes. Compare the CDN’s caching headers, if it provides them, on the affected resource. Clear that one URL if needed and record whether you tested a cache hit or a fresh fetch. Avoid changing the cache policy for login, cart or checkout while testing compression.
7. Compare transfer sizes for a worked example
For example, say a CSS file changes from 48 KB transferred with no Content-Encoding to 13 KB with gzip, with both requests returning 200. That file now costs less to download. If an unchanged WebP image still takes up most of the page transfer, review the image dimensions next.
8. Decide whether to keep the change
Keep the setting if your comparison shows meaningful savings and the page behaves normally. If assets fail to load, put the previous setting back and clear the affected cache. If the response remains unchanged, give support the URL, content type, transfer size, observed headers and whether a CDN is in use. Those details help them identify the layer that serves the file.
Common questions
Should I compress images and ZIP downloads too?
Leave formats such as JPEG, WebP and ZIP out of the list. To reduce a large image download, export a smaller version at dimensions that fit the page.
Why is there no Content-Length header?
The server can use a transfer method that does not send Content-Length. Check Content-Encoding and transferred size in the browser to tell whether a fresh response was compressed.


