> ## Documentation Index
> Fetch the complete documentation index at: https://help.noxity.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Optimize Website

> Toggle Apache mod_deflate compression for outgoing responses. A small lever with sharp edges.

Optimize Website is a single-page tool that flips Apache's `mod_deflate` compression on or off for your account. When on, Apache gzips text-based responses (HTML, CSS, JS, JSON) before sending them, which usually shaves 60–70% off transfer size.

<Warning>
  Think twice before changing this. Every modern web stack expects compression to be on, and most Noxity sites already have it on by default. Turning it off makes pages slower for visitors. Turning it on for content types that don't benefit (already-compressed images, video) wastes CPU. The wrong toggle here can also conflict with caching layers, AccelerateWP, or your CDN's own compression, leaving you with double-compressed broken responses.
</Warning>

<Frame caption="cPanel home → Software → Optimize Website">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/noxity/images/cpanel/software/optimize-website/page-light.png" alt="Optimize Website with compression toggle" className="block dark:hidden" />

  <img src="https://mintlify.s3.us-west-1.amazonaws.com/noxity/images/cpanel/software/optimize-website/page-dark.png" alt="Optimize Website with compression toggle" className="hidden dark:block" />
</Frame>

## The three options

| Option                                | What it does                                                                                                |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **Disabled**                          | Apache sends responses uncompressed. Most content is bigger over the wire.                                  |
| **Compress all content**              | Apache gzips everything text-shaped that goes out. Best default for almost every site.                      |
| **Compress the specified MIME types** | Apache only gzips the listed MIME types. Useful if you have a specific file type you don't want compressed. |

## When the default is correct

If you're a typical WordPress, Joomla, Laravel, or static-site account: **Compress all content** is what you want, and it's likely already set. Don't toggle.

## When to consider changing it

* **You're running AccelerateWP.** AccelerateWP handles compression itself. Leaving Apache compression on is fine but redundant. Don't disable Apache compression to "let AccelerateWP do it" without testing. Many AccelerateWP setups still rely on Apache as a fallback.
* **Your CDN compresses upstream.** Cloudflare, BunnyCDN, etc., compress on their edge. Some hosts disable origin compression to reduce CPU. Test before changing. If a connection bypasses the CDN, the visitor gets the uncompressed origin response.
* **You're serving large pre-compressed assets.** If your build pipeline outputs `.js.gz` files alongside `.js`, double-compression by Apache wastes CPU. The "compress specified MIME types" option lets you exclude `application/octet-stream` etc.

## When to leave it alone

* You don't know what gzip is. The default is right for you.
* The site works. Don't tinker.
* Your last performance test came back fine.

<Note>
  Compression is largely commodity now. The bigger speed wins for most sites are caching, CDN, and image optimization, not toggling this setting.
</Note>

## Common issues

<AccordionGroup>
  <Accordion title="Pages return as garbled text or download as binary">
    Either compression is being applied to a content type that doesn't survive it, or two layers are double-compressing. Set Optimize Website to **Disabled** as a quick test. If pages render correctly, find which other layer is also compressing (CDN, caching plugin, custom `.htaccess` rule) and pick one.
  </Accordion>

  <Accordion title="My PageSpeed score went down after enabling AccelerateWP">
    AccelerateWP enables gzip in its own way. If both are enabled, the response can be doubly compressed in some setups. Try disabling Optimize Website and see if PageSpeed recovers. See the [AccelerateWP overview](/web-hosting/cpanel/software/accelerate-wp/overview) for context.
  </Accordion>

  <Accordion title="Apache compression doesn't seem to be working at all">
    Check the response headers in your browser DevTools. `Content-Encoding: gzip` means it's working. If absent, either compression is off, the response is too small to compress (Apache skips bodies under \~1 KB), or the request didn't ask for it (clients send `Accept-Encoding: gzip` to request it).
  </Accordion>
</AccordionGroup>

## Need a hand?

<CardGroup cols={2}>
  <Card title="Open a ticket" icon="life-ring" href="https://members.noxity.io/submitticket.php">
    Best for anything that needs an account check or a config change on our end.
  </Card>

  <Card title="Live chat" icon="messages" href="https://noxity.io/contact">
    Faster for quick questions during business hours.
  </Card>
</CardGroup>
