Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

net::ERR_CONTENT_DECODING_FAILED 200

Post Reply
demetriofa
Posts: 5
Joined: Thu Nov 11, 2021 9:52 am

net::ERR_CONTENT_DECODING_FAILED 200

Post 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 :P.
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
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: net::ERR_CONTENT_DECODING_FAILED 200

Post 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?
demetriofa
Posts: 5
Joined: Thu Nov 11, 2021 9:52 am

Re: net::ERR_CONTENT_DECODING_FAILED 200

Post 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.
Post Reply