Chrome: This page isn’t working — sent an invalid response. ERR_CONTENT_DECODING_FAILED
The response claims to be compressed (gzip/brotli) but cannot be decompressed — it was double-compressed, truncated or not compressed at all.
sent an invalid response Meaning
The Content-Encoding header and the real body must match. Double compression (the app gzips and the server gzips again), a proxy that decompresses but leaves the header, or PHP zlib.output_compression combined with ob_gzhandler all trigger it.
Common causes
- Body compressed twice (application + web server or CDN)
Content-Encoding: gzipheader on an uncompressed body- Truncated compressed stream (crash, proxy limit)
- Mixed
zlib.output_compressionand manual gzip in PHP - Corrupted cache storing the wrong encoding
⚡ Quick fix
- Compress in exactly one layer
- Check
curl -sI --compressedandcurl -s -H "Accept-Encoding: gzip" | file - - Purge CDN/cache after fixing
Detailed fix by platform
PHP
- Use either
zlib.output_compression=Onorob_gzhandler, not both - Ensure no output before
header()calls
Nginx
gzip on;should not be used together with an upstream that already sendsContent-Encoding: gzipunlessgzip_proxied/proxy_set_header Accept-Encoding ""is set deliberately
Apache
- Disable duplicate
mod_deflaterules; check.htaccessAddOutputFilterByType
How to diagnose
- Layers — How many places compress?
- Test — Does the body decompress with gunzip?
- Cache — Is a stale encoding cached?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Browser
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026