Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…s setting.
  • Loading branch information...
commit 2bd7b1e5b944d6a8ae8de11da10a8d7805ab8a94 1 parent cb8174c
Juanito Fatas JuanitoFatas authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 guides/source/rails_on_rack.md
6 guides/source/rails_on_rack.md
View
@@ -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`**
Please sign in to comment.
Something went wrong with that request. Please try again.