title: How do I make IIS compress .svg files?
body: <p>I'm trying to acomplish this in web.config:</p>
  
  <pre><code>&lt;staticContent&gt;
    &lt;mimeMap fileExtension=".svg" mimeType="image/svg+xml" /&gt;
  &lt;/staticContent&gt;
  &lt;httpCompression&gt;
      &lt;staticTypes&gt;
          &lt;add mimeType="image/svg+xml" enabled="true"/&gt;
      &lt;/staticTypes&gt;
  &lt;/httpCompression&gt;
  &lt;urlCompression doStaticCompression="true" doDynamicCompression="true"/&gt;
  </code></pre>
  
  <p>But <code>Content-Encoding: gzip</code> never appears in response headers. Though, compression works good for other types like CSS.</p>