title: How do you turn on gzip compression for SVG files in IIS?
body: <p>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).  </p>
  
  <p>Here is my web.config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;system.webServer&gt;
          &lt;httpCompression minFileSizeForComp="1024" MaxDiskSpaceUsage="500"&gt;
              &lt;scheme name="gzip"/&gt;
              &lt;staticTypes&gt;
                &lt;add mimeType="text/*" enabled="true"/&gt;
                &lt;add mimeType="message/*" enabled="true"/&gt;
                &lt;add mimeType="application/javascript" enabled="true"/&gt;
                &lt;add mimeType="image/svg+xml" enabled="true"/&gt;
                &lt;add mimeType="application/json" enabled="true" /&gt;
                &lt;add mimeType="*/*" enabled="false"/&gt;
              &lt;/staticTypes&gt;
          &lt;/httpCompression&gt;
          &lt;urlCompression doStaticCompression="true" doDynamicCompression="true"/&gt;
          &lt;staticContent&gt;
            &lt;remove fileExtension=".svg" /&gt;
            &lt;mimeMap fileExtension=".svg" mimeType="image/svg+xml" /&gt;
            &lt;remove fileExtension=".svgz" /&gt;
            &lt;mimeMap fileExtension=".svgz" mimeType="image/svg+xml" /&gt; 
          &lt;/staticContent&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>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.  </p>
  
  <p>Any ideas?  </p>