diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2014-02-16 19:55:36 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2014-02-16 19:55:36 +0530 |
commit | 3e3ed1ede51f4d2f7f1d30b3754072b1121d5394 (patch) | |
tree | 4d721de7d9937cb2a0849b29738af8f29884240b /guides/source/asset_pipeline.md | |
parent | 8b80e3c59c0b3cd788aa674508fff28d29fda6a0 (diff) | |
parent | 8e6d0fd4343cc68aab1e2b46363a930130fca6e5 (diff) | |
download | rails-3e3ed1ede51f4d2f7f1d30b3754072b1121d5394.tar.gz rails-3e3ed1ede51f4d2f7f1d30b3754072b1121d5394.tar.bz2 rails-3e3ed1ede51f4d2f7f1d30b3754072b1121d5394.zip |
Merge pull request #13937 from ktaragorn/guides_fixes
Guides fixes
Diffstat (limited to 'guides/source/asset_pipeline.md')
-rw-r--r-- | guides/source/asset_pipeline.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index 9ae3fbb0b5..fa2e57ff92 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -1018,7 +1018,8 @@ The X-Sendfile header is a directive to the web server to ignore the response from the application, and instead serve a specified file from disk. This option is off by default, but can be enabled if your server supports it. When enabled, this passes responsibility for serving the file to the web server, which is -faster. +faster. Have a look at [send_file](http://api.rubyonrails.org/classes/ActionController/DataStreaming.html#method-i-send_file) +on how to use this feature. Apache and nginx support this option, which can be enabled in `config/environments/production.rb`: @@ -1033,6 +1034,10 @@ option, take care to paste this configuration option only into `production.rb` and any other environments you define with production behavior (not `application.rb`). +TIP: For further details have a look at the docs of your production web server: +- [Apache](https://tn123.org/mod_xsendfile/) +- [Nginx](http://wiki.nginx.org/XSendfile) + Assets Cache Store ------------------ |