Enable Gzip compression by default #7327

Closed
wants to merge 7 commits into from
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 on your webserver
+# 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 on your webserver
+# use Rack::Deflater
+
run <%= app_const %>