1

why net::ERR_CONTENT_DECODING_FAILED error message is coming for .js file?? I was surfing my website, and i got this error for three .js files. I checked this is due to compression failed. But I don't understand why compression is getting failed. status code for all .js file is 200.

pnuts
  • 58,317
  • 11
  • 87
  • 139
seemaA
  • 15
  • 2
  • 7

1 Answers1

0

If you use IIS-7+ then Check this IIS httpCompression http://www.iis.net/configreference/system.webserver/httpcompression

And for other reference:

Koti Panga
  • 3,660
  • 2
  • 18
  • 21
  • @ Venkata Panga, staticCompressionIgnoreHitFrequency, enter True to disable the behavior that a static file is compressed only if it is hit a certain number of times within a time period. can you tell me, number of hit required and time period in which hits to be done? – seemaA Nov 21 '14 at 09:18
  • In request header Accept-encoding: gzip, deflate, is missing, but in response header Content-encoding: gzip is present. does it cause compression failed. if yes, how to avoid it?? – seemaA Nov 21 '14 at 12:13
  • In IIS7, if you `Enable staic/dynamic content compression` and set this property `staticCompressionIgnoreHitFrequency` to `False`then no need to worry about other settings. Regarding number of hits thats separate chapter and if you use IIS 6 then you may think about it, [read this article](http://www.ksingla.net/2006/06/changes_to_compression_in_iis7/). Coming to Request Header `Accept-Encoding: gzip` browser should sends this header. – Koti Panga Nov 21 '14 at 19:46