Commit ea586a2ceb483310272002e096f2a1b2e25899d1
Exists in
master
and in
1 other branch
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
config.ru
| 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 |