1

I'm using a web service to receive json encoded data. It was working fine. Recently I have enabled gzip compression in my web server. After that I'm getting this error in my sencha touch application.But it's working fine when I checked the url via web browser. Any idea?

net::ERR_CONTENT_DECODING_FAILED
Harikrishnan
  • 9,688
  • 11
  • 84
  • 127

1 Answers1

1

That error is thrown by the browser; not Sencha.

  • The request should contain the correct header: Accept-Encoding: gzip, deflate
  • The response should contain the header telling the client which compression scheme is being used: Content-Encoding: gzip

See http://en.wikipedia.org/wiki/HTTP_compression.

Also check that the content is actually compressed using the specified scheme, see the following thread: Error 330 (net::ERR_CONTENT_DECODING_FAILED):

Community
  • 1
  • 1
Raxr
  • 965
  • 7
  • 12