Commit ea586a2ceb483310272002e096f2a1b2e25899d1

Authored by Cyril Mougel
2 parents 42d08538 b53fb1f3
Exists in master and in 1 other branch production

Merge pull request #552 from tscolari/master

Using Rack::Deflate and long expire dates for notifier.js
Showing 2 changed files with 2 additions and 0 deletions   Show diff stats
1 # This file is used by Rack-based servers to start the application. 1 # This file is used by Rack-based servers to start the application.
2 2
3 require ::File.expand_path('../config/environment', __FILE__) 3 require ::File.expand_path('../config/environment', __FILE__)
  4 +use Rack::Deflater
4 run Errbit::Application 5 run Errbit::Application
config/environments/production.rb
@@ -59,5 +59,6 @@ Errbit::Application.configure do @@ -59,5 +59,6 @@ Errbit::Application.configure do
59 59
60 # Send deprecation notices to registered listeners 60 # Send deprecation notices to registered listeners
61 config.active_support.deprecation = :notify 61 config.active_support.deprecation = :notify
  62 + config.static_cache_control = "public, max-age=7200"
62 end 63 end
63 64