title: mod_deflate compression causing swf files to not work correctly
body: <p>Recently enabled <code>mod_defalte</code> on my server to compress certain files.</p>
  
  <p>I thought the setup wouldn't cause any issues with <code>.swf</code> files but ever since I've had issues relating to <code>.swf</code> files running but not getting past their loading screens.</p>
  
  <p><strong>mod_deflate directory htaccess config</strong></p>
  
  <pre><code>&lt;ifmodule mod_deflate.c&gt;
  AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
  &lt;/ifmodule&gt;
  </code></pre>
  
  <p>I've noticed there seems to be quite a few issues relating to compression and <code>.swf</code> files  but I'm unsure why <code>mod_deflate</code> would be affecting them when it's set to run as above?</p>
  
  <p><strong>Possible Cause?</strong></p>
  
  <p>I do have the following settings below in WHM -> Apache Configuration -> Include Editor, are these the default <code>mod_deflate</code> settings or something I've added in?</p>
  
  <p>I only want to do a basic config as in the above example, should I just delete the <code>post_virtualhost_global.conf</code> settings?</p>
  
  <p><strong>mod_deflate - post_virtualhost_global.conf</strong></p>
  
  <pre><code>&lt;IfModule mod_deflate.c&gt;
  SetOutputFilter DEFLATE
  &lt;IfModule mod_setenvif.c&gt;
  # Netscape 4.x has some problems…
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  
  # Netscape 4.06-4.08 have some more problems
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  
  # MSIE masquerades as Netscape, but it is fine
  # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  
  # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
  # the above regex won’t work. You can use the following
  # workaround to get the desired effect:
  BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
  
  # Don’t compress images
  SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_headers.c&gt;
  # Make sure proxies don’t deliver the wrong content
  Header append Vary User-Agent env=!dont-vary
  &lt;/IfModule&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <hr>
  
  <p><em>Source</em></p>
  
  <p>mod_deflate and <code>.swf</code> flash file issues: <a href="https://www.google.co.uk/search?q=mod+defalte+defaults&amp;oq=mod+defalte+defaults&amp;aqs=chrome..69i57j69i60l5.3099j0&amp;sourceid=chrome&amp;espv=210&amp;es_sm=122&amp;ie=UTF-8#es_sm=122&amp;espv=210&amp;psj=1&amp;q=mod_deflate+flash+files" rel="nofollow">https://www.google.co.uk/search?q=mod+defalte+defaults&amp;oq=mod+defalte+defaults&amp;aqs=chrome..69i57j69i60l5.3099j0&amp;sourceid=chrome&amp;espv=210&amp;es_sm=122&amp;ie=UTF-8#es_sm=122&amp;espv=210&amp;psj=1&amp;q=mod_deflate+flash+files</a></p>