Commit dcc312e4 by John Doe

added deflater middleware to gzip json responses

parent 261ca22e
Showing with 2 additions and 0 deletions
...@@ -21,6 +21,8 @@ module ControlPanel ...@@ -21,6 +21,8 @@ module ControlPanel
# Initialize configuration defaults for originally generated Rails version. # Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.1 config.load_defaults 5.1
config.middleware.use Rack::Deflater
# Settings in config/environments/* take precedence over those specified here. # Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers # Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded. # -- all .rb files in that directory are automatically loaded.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment