Gzip compression doesn't work with IIS 8.5

I have a Server 2012 R2 box with IIS. I tried to enable compression for several sites working on this field, but I can't figure out why it won't work. In my request headers, everyone accepts accept-encoding, but the response headers are always Transfer-Encoding: chunked and Vary: Accept-Encoding. The following steps were taken to try and get gzip compression to work:

  • Dynamic and static compression enabled on every site and at the machine level
  • Both compression methods are installed from Server Manager
  • Httpcompression and urlcompression nodes are manually added to web.configs
  • Mime types for compression
  • The ChatHitThreshold is set to 1, so all content should be compressed after the first attempt to access it.

Tracing is done to understand why compression is not happening. The only information I have is the DYNAMIC_COMPRESSION_NOT_SUCCESS code with reason 1.

Here are the headers:

GET http://redactedservername:8082/ HTTP/1.1  
Host: redactedservername:8082  
Connection: keep-alive  
Cache-Control: max-age=0  
Accept:   text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8  
Upgrade-Insecure-Requests: 1  
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36  
DNT: 1  
Accept-Encoding: gzip, deflate, sdch  
Accept-Language: en-US,en;q=0.8  
Cookie: ASP.NET_SessionId=gnqovt55ggt22lycufudc0ns  

      

`

HTTP/1.1 200 OK  
Cache-Control: private  
Content-Type: text/html; charset=utf-8  
Vary: Accept-Encoding  
Date: Wed, 22 Jun 2016 14:00:57 GMT  
Transfer-Encoding: chunked

      

What other steps can you take to get the compression to work?

+1


source to share


1 answer


Compression worked, but ESET Antivirus did its job of monitoring web traffic. This changed the answer and I didn't get the encoding of the gzip content as expected. Disabling ESET and testing again showed that compression works.



+7


source







All Articles