gzip outgoing stuffs for great success

This commit is contained in:
Maxwell Salzberg 2012-05-24 13:02:20 -07:00
parent 33efa45ec0
commit 75277b4d0e
2 changed files with 2 additions and 1 deletions

View file

@ -12,6 +12,6 @@ require ::File.expand_path('../lib/rack/chrome_frame', __FILE__)
if defined?(Unicorn)
use UnicornKiller::Oom, 300 * 1024
end
use Rack::Deflater
use Rack::ChromeFrame, :minimum => 8
run Diaspora::Application

View file

@ -4,4 +4,5 @@
Diaspora::Application.configure do
config.serve_static_assets = AppConfig[:serve_static_assets] unless AppConfig[:serve_static_assets].nil?
# config.static_cache_control = "public, max-age=3600" if AppConfig[:serve_static_assets].to_s == 'true'
end