Forum: Ruby on Rails Gzip compression

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
59bea58f406ca9f19f7820c79d61bfc9?d=identicon&s=25 biji (Guest)
on 2006-03-04 05:31
How to enable automatic gzip compression for all .js .html ?


Thanks
36958dd94ca666a38483df282a5214d5?d=identicon&s=25 Peter Ertl (Guest)
on 2006-03-04 09:23
(Received via mailing list)
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
0091f92762685860109bbcb02edfdf27?d=identicon&s=25 Alain Ravet (Guest)
on 2006-03-04 11:33
(Received via mailing list)
biji
    > How to enable automatic gzip compression for all .js .html ?

google (rails filter gzip)

    http://blog.craz8.com/articles/2005/12/17/rails-ou...
    http://wiki.rubyonrails.org/rails/pages/Output+Com...

(warning: I've never used those techniques)

Alain
59bea58f406ca9f19f7820c79d61bfc9?d=identicon&s=25 biji (Guest)
on 2006-03-05 07:50
Peter Ertl 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.
This topic is locked and can not be replied to.