Return to Snippet

Revision: 8948
at October 14, 2008 18:32 by endorfin


Initial Code
### For Apache 1 ###

mod_gzip_on Yes 

mod_gzip_item_include mime ^application/x-javascript$ 
mod_gzip_item_include mime ^application/json$ 
mod_gzip_item_include mime ^text/.*$ 

mod_gzip_item_include file \.html$ 
mod_gzip_item_include file \.php$ 
mod_gzip_item_include file \.js$ 
mod_gzip_item_include file \.css$ 
mod_gzip_item_include file \.txt$ 
mod_gzip_item_include file \.xml$ 
mod_gzip_item_include file \.json$ 

Header append Vary Accept-Encoding

### For Apache 2 ###

AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/json
Header append Vary Accept-Encoding

Initial URL

                                

Initial Description

                                

Initial Title
Gzip your components

Initial Tags
htaccess

Initial Language
Apache