1
我已經在我的網站應用GZIP到SVG - WebConfig
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" dynamicCompressionDisableCpuUsage="90" dynamicCompressionEnableCpuUsage="70">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
<dynamicTypes>
<add mimeType="*/*" enabled="true"/>
</dynamicTypes>
<staticTypes>
<add mimeType="*/*" enabled="true"/>
</staticTypes>
</httpCompression>
<urlCompression doStaticCompression="true" doDynamicCompression="true"/>
我檢查的.aspx啓用靜態和動態內容壓縮的.js和.css文件內容編碼 - 它的gzip - 到目前爲止好。但是,壓縮不適用於SVG。 PageSpeed也會通知我這件事(YSlow不會......)。
我使用SVGs作爲圖像的src屬性和CSS類。 (CSS類是否被認爲是動態內容?)
將IIS靜態壓縮設置爲僅壓縮大於500字節的文件 - 所有這些SVG均超過此限制。
安裝了靜態和動態壓縮模塊。
我錯過了什麼?
嘿,內容類型似乎是OK 接受:圖像/ WEBP,*/*; Q = 0.8 接受編碼:gzip,緊縮,SDCH 接受語言:EN-US,EN; Q = 0.8 HTTP/1.1 200 OK 緩存控制:最大年齡= 31536000 的Content-Type: 「SVG」 圖像/ SVG + xml的 我加入甚至 到WebConfig –
Tondo