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
- <httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024">
- <scheme dll="%Windir%\system32\inetsrv\gzip.dll" name="gzip"/>
- <dynamicTypes>
- <add enabled="true" mimeType="text/*" />
- <add enabled="true" mimeType="message/*" />
- <add enabled="true" mimeType="application/javascript" />
- <add enabled="true" mimeType="application/json" />
- <add enabled="true" mimeType="application/json; charset=utf-8" />
- <add enabled="false" mimeType="*/*" />
- </dynamicTypes>
- <staticTypes>
- <add enabled="true" mimeType="text/*"/>
- <add enabled="true" mimeType="message/*"/>
- <add enabled="true" mimeType="application/javascript"/>
- <add enabled="true" mimeType="application/json"/>
- <add enabled="true" mimeType="application/json; charset=utf-8" />
- <add enabled="false" mimeType="*/*"/>
- </staticTypes>
- </httpCompression>