title: How to send compressed (deflated) SVG via Apache2?
body: <p>I have specified the following attributes in my site's <code>.htaccess</code> file:</p>
  
  <pre><code>AddOutputFilterByType DEFLATE image/svg+xml
  DeflateCompressionLevel 9
  Header append Vary Accept-Encoding
  </code></pre>
  
  <p>However, my SVG asset is not being sent in compressed form:</p>
  
  <pre><code>$ curl https://example.org/assets/svg/asset.svg --silent -H "Accept-Encoding: gzip,deflate" --write-out "${size_download}\n" --output /dev/null                 
  152655                                                                                                                                                                                                                                  
  $ curl https://example.org/assets/svg/asset.svg --silent --write-out "%{size_download}\n" --output /dev/null
  152655
  </code></pre>
  
  <p>I verified that this asset (<code>asset.svg</code>) is being sent with MIME type <code>image/svg+xml</code> using Chrome, but using the Web Developer tools, this specific file is not being compressed when sent to the client.</p>
  
  <p>Adding other MIME types to the <code>.htaccess</code> file is successful (e.g., adding <code>text/html</code> compresses the HTML assets).</p>
  
  <p>This seems specific to how SVG data are handled. What else can I try or troubleshoot to get SVG compression working?</p>