rails/rails — pull request #6728 by gaurish (2012-06-13 22:05:34+00:00)
Title: Add config which enables gzip compression, Disabled by default

Setting `config.gzip_compression = true` will load the `Rack::Deflater` middleware & enable gzip compression.

This config setting is useful if the HTTP requests terminates directly at app server & no longer goes through a web server(Example Heroku's Cedar stack). Therefore, gzip compression becomes responsibility of rack middleware.

In absence of this setting, people have resorted to hacking [config.ru directly](http://stackoverflow.com/questions/7236583/where-to-insert-rackdeflater-in-the-rack). this patch provides a clean way, if anyone want to enable gzip compression at app server level