Return to Snippet

Revision: 35596
at November 10, 2010 20:18 by gbot


Initial Code
# gzip compression.
<IfModule mod_deflate.c>

# html, txt, css, js, json, xml, htc:
#AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
#AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript 
#AddOutputFilterByType DEFLATE text/xml application/xml text/x-component

# OR...

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript


# webfonts and svg:
  <FilesMatch "\.(ttf|otf|eot|svg)$" >
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>

Initial URL

                                

Initial Description

                                

Initial Title
enable gZip on (dv) server using .htaccess

Initial Tags

                                

Initial Language
Apache