Website performance and delivery · Article 0339

How to Diagnose Brotli compression not being applied

Use this evidence-first guide to diagnose the specific symptom, make the smallest justified change, and confirm that the original workflow is restored.

Before you change anything: Back up relevant files and data, record the current setting, and test one change at a time. Do not share passwords, API keys, session cookies, or private customer data in support requests.

What the symptom usually means

This symptom is a clue, not a diagnosis. For “How to Diagnose Brotli compression not being applied,” the cause may sit in configuration, routing, application behavior, or an upstream service. Confirm the failing layer from the response and logs before changing settings.

Compression checks

Checks to run first

  1. Reproduce the issue and record URL, timestamp, device/browser, expected and actual results, and recent changes.
  2. Inspect browser Network/Console tools and application/hosting logs for the first relevant failure.
  3. Compare with a known-working page, user, device, or request to narrow the difference.
  4. Change one evidence-supported setting or component at a time and preserve the original value for rollback.

Measure before changing performance settings

Use these checks to isolate the specific failure described in this guide.

Step-by-step troubleshooting

  1. Inspect the request's Accept-Encoding header and the response's Content-Encoding header for HTML, CSS, and JavaScript. Confirm the client and intermediary negotiate Brotli rather than assuming the server setting alone is sufficient.
  2. Check whether the CDN or reverse proxy supports Brotli and whether it compresses at the edge or forwards the origin's encoding. Compare a cache miss and a cache hit, including Vary: Accept-Encoding behavior.
  3. Enable Brotli only at the layer that owns response compression and avoid sending Brotli bytes without Content-Encoding: br. Check that compressed responses are not cached under a key that ignores encoding negotiation.
  4. Fetch the response with a Brotli-capable client and verify the browser decodes it, the expected header is present, and transfer size is reasonable.

How to verify the fix

Common mistakes to avoid

If the problem continues

Escalate with the exact affected URL, timestamp and time zone, response/error code, steps to reproduce, recent changes, and a sanitized log excerpt or request ID. Tell the host or software provider what you tested and what changed. Ask them to check the layer you cannot access rather than requesting a broad reset.

For provider-specific values, version-sensitive behavior, or commands, confirm the instructions in the official documentation for your exact hosting plan and software version before applying them. This guide intentionally avoids destructive one-size-fits-all commands because the correct action depends on the evidence and environment.

Related troubleshooting guides