Sachin Singh

Sachin Singh

  • 7
  • 55.8k
  • 81.4k

Gzip compression issue on iis 8.5

Aug 7 2020 8:44 AM
The problem is as soon as i recycle the app pool Gzip starts working but after 2-3 minutes it again stops working ,testing with google chrome (in response header not getting Gzip) or any tool says Gzip is not enabled.
But when i again recycle the app pool ,it starts working.
 
what might be the issue. Please if anybody have faced it then any help would be appreciated.
 
This is my web.config
  1. <httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024">    
  2.      <scheme dll="%Windir%\system32\inetsrv\gzip.dll" name="gzip"/>    
  3.      <dynamicTypes>    
  4.        <add enabled="true" mimeType="text/*" />    
  5.        <add enabled="true" mimeType="message/*" />    
  6.        <add enabled="true" mimeType="application/javascript" />    
  7.        <add enabled="true" mimeType="application/json" />    
  8.        <add enabled="true" mimeType="application/json; charset=utf-8" />    
  9.        <add enabled="false" mimeType="*/*" />    
  10.      </dynamicTypes>    
  11.      <staticTypes>    
  12.        <add enabled="true" mimeType="text/*"/>    
  13.        <add enabled="true" mimeType="message/*"/>    
  14.        <add enabled="true" mimeType="application/javascript"/>    
  15.        <add enabled="true" mimeType="application/json"/>    
  16.        <add enabled="true" mimeType="application/json; charset=utf-8" />    
  17.        <add enabled="false" mimeType="*/*"/>    
  18.      </staticTypes>    
  19. </httpCompression>  

Answers (2)