I have created a web.config file that successfully turns on static compression for text and message resources. However, the obvious solution shown below does not seem to have any affect on .svg compression (validated that gzip content encoding not set in response header for .svg files, but is set for .html, css, etc. via chrome developer tools).
Here is my web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpCompression minFileSizeForComp="1024" MaxDiskSpaceUsage="500">
<scheme name="gzip"/>
<staticTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="image/svg+xml" enabled="true"/>
<add mimeType="application/json" enabled="true" />
<add mimeType="*/*" enabled="false"/>
</staticTypes>
</httpCompression>
<urlCompression doStaticCompression="true" doDynamicCompression="true"/>
<staticContent>
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<remove fileExtension=".svgz" />
<mimeMap fileExtension=".svgz" mimeType="image/svg+xml" />
</staticContent>
</system.webServer>
</configuration>
The motivation for this question is to deliver compressed SVG fonts as recommended by Google Page Speed Insights. I've been testing this web.config on IIS 7.5/Windows 7 and IIS 8/Windows Server 2012.
Any ideas?