How to enable output compression (gzip) on everything that comes out of my Ruby on rails on Mongrel / WEBrick Server?

I'm not sure if this is the right place to ask this question, since the answer to this may be a coding solution or a configuration solution :) in any way,

I am using ruby ​​1.8.7 and rails 2.3.11 running on a Mongrel server. How to enable gzip compression in everything (views, data, JS, CSS, etc.) that come out of this server?

I tried google and most answers talk about using apache: P, but I don't have access to any other web server. There are no direct answers on how to get webrick to do this.

Can anyone help me?

thank

+3
source share
1 answer

All Articles