Gzip compression

How to enable automatic gzip compression for all .js .html ?

Thanks

depends on the server (webrick / lighttpd / apache / etc.) …

this is how lighttpd (http://www.lighttpd.net) does it:
http://www.lighttpd.net/documentation/compress.html

biji
> How to enable automatic gzip compression for all .js .html ?

google (rails filter gzip)

http://blog.craz8.com/articles/2005/12/17/rails-outputcompressionfilter
http://wiki.rubyonrails.org/rails/pages/Output+Compression+Plugin

(warning: I’ve never used those techniques)

Alain

Peter E. wrote:

depends on the server (webrick / lighttpd / apache / etc.) …

Thanks,
I’m using apache, and enabled mod_deflate.

I think this feature should be included in rails
for those who don’t have access to webserver.