Website performance and delivery · Article 0340

How to Diagnose GZIP 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 GZIP 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. Request a representative text asset with Accept-Encoding: gzip and inspect whether the response contains Content-Encoding: gzip. Compare the HTML document with CSS and JavaScript because compression can be configured by MIME type.
  2. Identify whether Apache/Nginx, the application, hosting panel, or CDN owns compression. Check for exclusions, minimum-size thresholds, and proxy behavior that may bypass compression for some paths.
  3. Enable GZIP for eligible text MIME types at the responsible layer. Avoid compressing already-compressed images and avoid double-compressing content or caching variants without respecting Accept-Encoding.
  4. Test a fresh response with a gzip-capable client and verify the body decodes, the header matches the encoding, and the response size is reduced.

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