Gzip Compression

hi every body .

i was googling Gzip Compression  and my result was :  https://elgg.org/pages/view/764754/how-to-speed-up-a-slow-site-as-elgg => Gzip Components

then i see this code in .htaccess  to use gzip if it is available  .

<IfModule mod_gzip.c>
   mod_gzip_on yes
   mod_gzip_dechunk yes
   mod_gzip_keep_workfiles No
   mod_gzip_minimum_file_size 1000
   mod_gzip_maximum_file_size 1000000
   mod_gzip_maximum_inmem_size 1000000
   mod_gzip_item_include mime ^text/.*
   mod_gzip_item_include mime ^application/javascript$
   mod_gzip_item_include mime ^application/x-javascript$
   # Exclude old browsers and images since IE has trouble with this
   mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["
   mod_gzip_item_exclude mime ^image/.*
</IfModule

now i am confuse how could i enable mod_zip ?

general : how can i use this feature in elgg ?

There was forget  i do these :

  • uncommented :

LoadModule headers_module modules/mod_deflate.so
LoadModule filter_module modules/mod_filter.so
put this at the end of my httpd.conf file:

SetOutputFilter DEFLATE

<Directory "C:/your-server-root/manual"> #any path to which you wish to apply gzip compression to!
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html # or any file type you wish
</IfModule>
</Directory>

 

???

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking