.NET 4.0和IIS 7.5
我完全失去了这个。压缩在IIS上启用了静态和动态。 Web.Config看起来像这样:
<httpCompression minFileSizeForComp="1" directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme doDynamicCompression="true" name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
<dynamicTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="application/json" enabled="true"/>
<add mimeType="application/json; charset=utf-8" enabled="true"/>
<add mimeType="*/*" enabled="true"/>
</dynamicTypes>
<staticTypes>
<add mimeType="image/png" enabled="true"/>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="application/json" enabled="true"/>
<add mimeType="*/*" enabled="true"/>
</staticTypes>
</httpCompression>
<urlCompression doStaticCompression="true" doDynamicCompression="true"/>
</system.webServer>
然而,当我监控Figgler服务器中的流量时,不会压缩我的请求。如何使用我的服务启用它?