Sometimes, you open page of your website in Firefox browser and you get following error.
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.Please contact the website owners to inform them of this problem.
In Google Chrome, you get the following error.
Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.
This error occurs when HTTP request’s headers claim that content is gzip encoded while it's not. This error can be fixed by turning off gzip encoding in browser you use.
Other Possible Solutions
- If you are a web developer and you are receiving this error in your php pages, the solution is to turn on or off zlib.output_compression in php.ini. If your web content is in fact encoded turn it on or else turn it off. Just open your php.ini and find the zlib.output_compression line and turn it on or off and save the php.ini file.
zlib.output_compression = On/Off
- Try saving your codes with UTF8 format without BOM (Byte Order Mark). Sometimes, codes written with Notepad++ or other coding tools use UTF8 encode and that also causes this error.
- If you receive this error specifically on Chrome browser you can try upgrading Chrome to latest version or reinstall it. If you are running Chrome extensions, try disabling them all and access your webpage. If your web page works fine enable them one by one. Thus, you can determine the culprit extension and disable it.
- If you have enabled Privoxy proxy in chrome check out the fix suggested here.
- If you have installed any antivirus software in your local computer, try turning it off for a while and reload the page you have problems with. Thus, you could identify if antivirus is causing the problem.