gzip outgoing stuffs for great success
This commit is contained in:
parent
33efa45ec0
commit
75277b4d0e
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue