Cannot enable gzip

Advanced feature discussion, beta programs and unsupported "Labs" features.
1 post Page 1 of 1
by Jarel » Sat Jul 12, 2014 12:12 pm
I'm having some difficulty getting gzip to actually work on Sonic. Has anyone been able to get this to work? I've tried adding a few different versions of code into my .htaccess file but nothing seems to be working.

Here is the latest code I've tried:

Code: Select all

<IfModule mod_mime.c>
 AddType application/x-javascript .js
 AddType text/css .css
</IfModule>
<IfModule mod_deflate.c>
 AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/javascript
 <IfModule mod_setenvif.c>
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
 </IfModule>
 <IfModule mod_headers.c>
  Header append Vary User-Agent env=!dont-vary
 </IfModule>
</IfModule>
1 post Page 1 of 1