Page 1 of 1
net::ERR_CONTENT_DECODING_FAILED 200
Posted: Thu Nov 11, 2021 4:54 pm
by demetriofa
First of all congratulations for this code is awesome!!
I am trying to replace a Javascript file with my version for an online game

.
I was doing several years!! but was a version I was not able to "replace" the same file twice in the same execution.
The problem now is that they do a cache and then doesn't work anymore.
Trying with the actual version I get always is
net::ERR_CONTENT_DECODING_FAILED 200
Re: net::ERR_CONTENT_DECODING_FAILED 200
Posted: Thu Nov 11, 2021 7:00 pm
by salvadordf
Hi Demetrio,
How are you replacing that file?
Are you using the code from the ResponseFilterBrowser demo?
There are many search results for "net::ERR_CONTENT_DECODING_FAILED 200". It seems to be a protocol error and it seems to be related to the usage of a proxy or VPN. Have you tried disabling your proxy or VPN settings?
Re: net::ERR_CONTENT_DECODING_FAILED 200
Posted: Thu Nov 11, 2021 9:57 pm
by demetriofa
Look headers of request are theorically changed contentype to identity:
Code: Select all
Accept:*/*
[b]Accept-Encoding:identity[/b]
Accept-Language:en-US,en;q=0.9
DNT:1
Origin:https://XXXXXXXXX.com
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
sec-ch-ua:"Chromium";v="95"
sec-ch-ua-mobile:?0
sec-ch-ua-platform:"Windows"
But what i get as an answer is:
Code: Select all
accept-ranges:bytes
access-control-allow-origin:*
age:0
cache-control:max-age=2592000, public
[b]content-encoding:br[/b]
content-length:2672220
content-type:application/javascript
date:Thu, 11 Nov 2021 14:48:48 GMT
etag:W/"618b9c7b-1044509"
expires:Sat, 11 Dec 2021 14:48:48 GMT
last-modified:Wed, 10 Nov 2021 10:18:35 GMT
server:nginx
vary:Accept-Encoding
via:1.1 varnish
x-cache:MISS
x-cache-hits:0
x-served-by:cache-hhn4028-HHN
x-timer:S1636642128.450996,VS0,VE293
So I think the problem is that I receive an BR encoded and when i try to replace with my file that si no compressed BR it cames with this decodingfile.