Skip to content
Browse files

Gzip compression enabled by default

  • Loading branch information...
1 parent 8b2bc61 commit d49f4a71fddb7c5ffe85f1d0072f287f9ae9d41b @jeroeningen committed Aug 10, 2012
View
4 guides/code/getting_started/config.ru
@@ -1,4 +1,8 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
+
+#enable Gzip compression
+use Rack::Deflater
+
run Blog::Application
View
4 railties/lib/rails/generators/rails/app/templates/config.ru
@@ -1,4 +1,8 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
+
+#enable Gzip compression
+use Rack::Deflater
+
run <%= app_const %>

0 comments on commit d49f4a7

Please sign in to comment.
Something went wrong with that request. Please try again.