Permalink
Browse files

[ci skip] Add explanation on Rack::Sendfile and fix serve static file…

…s setting.
  • Loading branch information...
1 parent cb8174c commit 2bd7b1e5b944d6a8ae8de11da10a8d7805ab8a94 @JuanitoFatas JuanitoFatas committed Oct 4, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 guides/source/rails_on_rack.md
@@ -225,9 +225,13 @@ config.middleware.delete "Rack::MethodOverride"
Much of Action Controller's functionality is implemented as Middlewares. The following list explains the purpose of each of them:
+ **`Rack::Sendfile`**
+
+* Sets server specific X-Sendfile header. Configure this via `config.action_dispatch.x_sendfile_header` option.
+
**`ActionDispatch::Static`**
-* Used to serve static assets. Disabled if `config.serve_static_assets` is true.
+* Used to serve static assets. Disabled if `config.serve_static_assets` is `false`.
**`Rack::Lock`**

0 comments on commit 2bd7b1e

Please sign in to comment.