diff options
author | Juanito Fatas <katehuang0320@gmail.com> | 2013-10-04 16:35:33 +0800 |
---|---|---|
committer | Juanito Fatas <katehuang0320@gmail.com> | 2013-10-04 16:36:10 +0800 |
commit | 2bd7b1e5b944d6a8ae8de11da10a8d7805ab8a94 (patch) | |
tree | a82d5f02d676e83ee964fd3781527b072f6c00b0 /guides | |
parent | cb8174c57f46f3b11bc4662638539f45677d7dc1 (diff) | |
download | rails-2bd7b1e5b944d6a8ae8de11da10a8d7805ab8a94.tar.gz rails-2bd7b1e5b944d6a8ae8de11da10a8d7805ab8a94.tar.bz2 rails-2bd7b1e5b944d6a8ae8de11da10a8d7805ab8a94.zip |
[ci skip] Add explanation on Rack::Sendfile and fix serve static files setting.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/rails_on_rack.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md index 642c70fd9d..d53e0cd2bd 100644 --- a/guides/source/rails_on_rack.md +++ b/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`** |