1

.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 服务器中监控流量时,不会压缩我的请求。如何使用我的服务启用它?

4

0 回答 0