- Messages
- 5,508
- Reaction score
- 35
- Points
- 48
Why?
Pros
Put this in your .htaccess:
This enables GZIP on html, plain text, images, xml and php
Source: http://forums.invisionpower.com/index.php?showtopic=180892
Pros
- Save bandwidth
- Users gets the page faster
- CPU load
Put this in your .htaccess:
Code:
<IfModule mod_gzip.c>
mod_gzip_on yes
mod_gzip_item_include mime text/html
mod_gzip_item_include mime text/plain
mod_gzip_item_include mime text/css
mod_gzip_item_include mime application/xml
mod_gzip_item_include mime application/x-httpd-php
mod_gzip_item_include mime image/x-generic
mod_gzip_dechunk yes
mod_gzip_min_http 1000
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 1000
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 1000000
mod_gzip_can_negotiate Yes
</IfModule>
This enables GZIP on html, plain text, images, xml and php
Source: http://forums.invisionpower.com/index.php?showtopic=180892
Last edited: