From d4b70680b2fdcdb2c050603de3f5d05aa9848725 Mon Sep 17 00:00:00 2001 From: Winston Date: Mon, 19 Oct 2015 23:07:10 +0800 Subject: [PATCH] Use middleware Rack::Deflater. --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index 0aa7f1e..38e28d8 100644 --- a/config/application.rb +++ b/config/application.rb @@ -22,5 +22,8 @@ class Application < Rails::Application # Do not swallow errors in after_commit/after_rollback callbacks. config.active_record.raise_in_transactional_callbacks = true + + # Runtime Compression + config.middleware.use Rack::Deflater end end