Commit 75277b4d authored by Maxwell Salzberg's avatar Maxwell Salzberg

gzip outgoing stuffs for great success

parent 33efa45e
...@@ -12,6 +12,6 @@ require ::File.expand_path('../lib/rack/chrome_frame', __FILE__) ...@@ -12,6 +12,6 @@ require ::File.expand_path('../lib/rack/chrome_frame', __FILE__)
if defined?(Unicorn) if defined?(Unicorn)
use UnicornKiller::Oom, 300 * 1024 use UnicornKiller::Oom, 300 * 1024
end end
use Rack::Deflater
use Rack::ChromeFrame, :minimum => 8 use Rack::ChromeFrame, :minimum => 8
run Diaspora::Application run Diaspora::Application
...@@ -4,4 +4,5 @@ ...@@ -4,4 +4,5 @@
Diaspora::Application.configure do Diaspora::Application.configure do
config.serve_static_assets = AppConfig[:serve_static_assets] unless AppConfig[:serve_static_assets].nil? 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 end
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 to comment