On Mon, Feb 03, 2003 at 01:50:00PM +0100, Bart Guijt wrote:
> Hi all,
> 
> I'm interested to see whether the following technique is useful for Cocoon apps as 
>well: compressing requested content if the client supports it. The article at the 
>following link illustrates this best:
> 
> 
>     http://www.servletsuite.com/servlets/compress.htm
> 
> 
> I browsed the Cocoon sources to see whether something like this was already 
>implemented, but apparantly it's not.
> 
> Has anybody used this before? What are your experiences?
use apache as an frontend and mod_gzip

here is a piece of config from httpd.conf:

LoadModule gzip_module modules/ApacheModuleGzip.dll
[...]
AddModule mod_gzip.c
[...]
<IfModule mod_gzip.c>
        mod_gzip_on Yes
        mod_gzip_dechunk Yes
        mod_gzip_keep_workfiles No
        mod_gzip_temp_dir c:/temp

        mod_gzip_minimum_file_size  50
        mod_gzip_maximum_file_size  0
        mod_gzip_maximum_inmem_size 1000000


        mod_gzip_item_include mime text/.*
        mod_gzip_item_include file .*

        LogFormat "%h %l %u %t \"%V %r\" %>s %b mod_gzip: %{mod_gzip_result}n 
In:%{mod_gzip_input_size}n 
Out:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct." 
common_with_mod_gzip_info2
        CustomLog logs/mod_gzip.log  common_with_mod_gzip_info2
</IfModule>

To be able to use mod_gzip with POST requests you have to hack both ApacheCore and 
mod_gzip library
search google for "mod_gzip POST bug" and you will find an answer how. After patching 
it works like a charm.
        ouzo
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      [EMAIL PROTECTED]          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to