Codebeerstartups

Enable gzip compression for Rails 3.2 on heroku Cedar

Introduction

user

Mohit Jain

Rails Developer


heroku ruby-on-rails

Enable gzip compression for Rails 3.2 on heroku Cedar

Posted by Mohit Jain on .
Featured

heroku ruby-on-rails

Enable gzip compression for Rails 3.2 on heroku Cedar

Posted by Mohit Jain on .

The simplest way to enable gzip compression in Rails 3.2 is by adding “use Rack::Deflater” in config.ru file.

# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
use Rack::Deflater
run Improvingoutcomes::Application
user

Mohit Jain

http://codebeerstartups.com

Rails Developer