how to properly enable gzip compression/deflate

Status
Not open for further replies.

s5admin

New Member
Messages
14
Reaction score
0
Points
0
hello everyone, hope all's good.

i'm pretty new to publishing on apache, and i've been reading a lot about enabling compression on my pages. i tried adding the following to my .htaccess, but when i check with pagespeed or online gzip checkers, the site i'm workin on (s5ent.com) shows that its contents are still not compressed:

Code:
# compress
<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 text/js
  mod_gzip_item_include mime text/asp
  mod_gzip_item_include mime text/aspx
  mod_gzip_item_include mime application/xml
  mod_gzip_item_include mime application/x-httpd-php
  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>
<FilesMatch "\.(js|css|html|htm|php|xml|asp|aspx)$">
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</FilesMatch>

uhm, how do i accomplish this properly? i don't want to just put together stuff i read online and not really have enough know-how to make sure it's efficient/right/etc..

thanks guys, i really need your help. hope to hear from you soon. have a good one.

btw, am on stoli, if that's helpful. thanks again.
 
Status
Not open for further replies.
Top