RECOMMENDED: Click here to fix Windows errors and optimize system performance
ERR_CONTENT_DECODING_FAILED error may appear in your browser when a resource is configured on your reverse proxy and backend communication is working. In other words, the backend returns data, but not in the form expected by the browser. For example: the browser expects a response from the GZIP, but receives plain text. As a result, the decoding of the index content failed. Content received, but the browser is not able to decode / understand the data.
To fix this error, reset the Accept-Code header of the encoding request in your Reverse Proxy configuration.
Here are some possible solutions to correct the error ERR_CONTENT_DECODING_FAILED:
If you are a web developer and you receive this error in your php pages, the solution is to enable or disable zlib.output_compression in php.ini. If your web content is actually encoded, enable or disable it. Simply open your php.ini and find the line zlib.output_compression and enable or disable and save the php.ini file.
zlib.output_compression = On/Off
- Try to save your codes in UTF8 format without BOM (Byte Order Mark). Sometimes codes written with Notepad++++ or other coding tools use UTF8 encoding and this also causes this error.
- If you receive this error specifically on the Chrome browser, you can try to update Chrome to the latest version or reinstall it. If you use Chrome extensions, try to disable them all and access your web page. If your web page is working correctly, activate them one by one. This way, you can determine the culprit extension and disable it.
- If you have enabled Privoxy proxy in chrome, check the suggested correction here.
- If you have installed antivirus software on your local computer, try to turn it off for a while and reload the page that is causing you problems. This way, you can identify if the antivirus is the cause of the problem.
Enable zlib.output_compression in your php.ini
Open your php.ini. On Debian/Ubuntu, it’s /etc/php5/apache2/php.ini :
Under Fedora/CentOS/RedHat, it is /etc/php.ini :
Find the line zlib.output_compression and activate zlib.output_compression :
zlib.output_compression = On
Restart Apache then:
On Debian/Ubuntu, you run:
Under Fedora/CentOS/RedHat, you run:
Disabling G-Zip encoding
Sometimes, G-Zip encoding is the reason why this error is triggered. Few browsers provide the necessary customization to disable this feature without using third-party extensions. Therefore, in this step, we will download and install an extension, then disable G-Zip encoding using this extension.
Deleting browser history and cookies
Sometimes, the browser history or cookies may be corrupted. As a result, the encoding process can be affected. Therefore, in this step, we will delete the browser history and cookies. Depending on your browser, the process may differ a little.
RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance
CCNA, Web Developer, PC Troubleshooter
I am a computer enthusiast and a practicing IT Professional. I have years of experience behind me in computer programming, hardware troubleshooting and repair. I specialise in Web Development and Database Design. I also have a CCNA certification for Network Design and Troubleshooting.