Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

GM with mod_perl + mod_gzip

Quote Reply
GM with mod_perl + mod_gzip
GM running under mod_perl. I just also installed mod_gzip tested and it really speeds up the pages. Are there any precautions that are needed or it is just fine to let it run that way and reap the benifits of faster loading and reduced bandwidth.

Anup


=_= =_= =_= =_= =_= =_=


You can chain me, you can torture me, you can even destroy this body, but you will never imprison my mind.
-Mahatma Gandhi
Quote Reply
Re: [anup123] GM with mod_perl + mod_gzip In reply to
The only issue with mod_gzip is serving javascript pages. There are some problems with browsers that say they can accept gzip'd javascript, but can't really.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] GM with mod_perl + mod_gzip In reply to
Thnx Alex. I have excluded the .css and .js from the compression. However, i do notice following:

http://somedomain -- properties shows original page size.

http://somedomain/index.*htm* -- property shows compressed page size.

Same with GMail. On Clicking Home I get 10K for a 50 K Home page. After sending the mail, the property again shows 50K .....

Have the following in httpd.conf

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_can_negotiate Yes
mod_gzip_static_suffix .gz
AddEncoding gzip .gz
mod_gzip_update_static No
mod_gzip_command_version '/mod_gzip_status'
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 500
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 1000
mod_gzip_handle_methods GET POST
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.shtml$
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.shtm$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.phtml$
mod_gzip_item_exclude file \.js$
mod_gzip_item_exclude file \.css$
mod_gzip_item_include file \.pl$
mod_gzip_item_include file \.cgi$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_exclude mime ^image/
mod_gzip_dechunk Yes
mod_gzip_add_header_count Yes
mod_gzip_send_vary Yes
</IfModule>


Am i missing something?

Anup