Apache 2.4 gzip compression not work only on .svg type
<p>gzip compression work on many types (eg: javascript, css, xml, html), but not work only on .svg type.</p>

<p>httpd.conf (revelant part)</p>

<pre><code>LoadModule mime_module modules/mod_mime.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule filter_module modules/mod_filter.so

&lt;IfModule mime_module&gt;
    TypesConfig conf/mime.types
&lt;/IfModule&gt;

&lt;IfModule mod_mime.c&gt;
    AddEncoding gzip svgz
&lt;/IfModule&gt;

&lt;IfModule mod_deflate.c&gt;
    &lt;IfModule mod_filter.c&gt;
        AddOutputFilterByType DEFLATE application/atom+xml \
                                  application/javascript \
                                  application/json \
                                  application/rss+xml \
                                  application/vnd.ms-fontobject \
                                  application/x-font-ttf \
                                  application/x-font-woff \
                                  application/x-web-app-manifest+json \
                                  application/xhtml+xml \
                                  application/xml \
                                  font/opentype \
                                  image/svg+xml \
                                  image/x-icon \
                                  text/css \
                                  text/html \
                                  text/plain \
                                  text/x-component \
                                  text/xml
    &lt;/IfModule&gt;
&lt;/IfModule&gt;
</code></pre>

<p>conf/mime.types  (revelant part)</p>

<pre><code>image/svg+xml svg svgz
</code></pre>

<p>using this tool <a href="http://checkgzipcompression.com/" rel="noreferrer">http://checkgzipcompression.com/</a> on</p>

<ul>
<li><a href="http://example.com/src/my.css" rel="noreferrer">http://example.com/src/my.css</a> GZIP is enabled </li>
<li><a href="http://example.com/src/my.js" rel="noreferrer">http://example.com/src/my.js</a> GZIP is enabled </li>
<li><a href="http://example.com/src/glyphicons-halflings-regular.svg" rel="noreferrer">http://example.com/src/glyphicons-halflings-regular.svg</a> GZIP is not enabled </li>
</ul>