From: Dominik Werder Date: 2003-05-16T22:40:00+09:00 Subject: Re: gzip cgi compression > How are you running this? As a CGI under a webserver, or is there a Ruby > TCP > server which is not shown? I'm running it with mod_ruby I checked the response with this little 2 liner we're discussing in the IO blocking thread, and the ouput is principially the same as a PHP-gzip- output-buffering response. I can't tell any difference, only the compressed data itself changes of course, and the chunk-byte-size of course... > As a CGI, the webserver would override your choices of transfer-coding > and No, it doesn't. Seems working to me. See above. > so on. In that case, I think you should leave off the 'chunking' and size > fields, and just send the compressed file directly after the headers. For > example, when sqwebmail uses gzip compression, it works in the normal way > but just adds a "Content-Encoding: gzip" header. Tried too. Thanks! Dominik