在heroku上的Rails 3 x_sendfile

den*_*min 0 ruby-on-rails nginx heroku ruby-on-rails-3

Rails 3允许直接以更高效的方式向HTTP客户端发送静态文件,并绕过您的应用服务器进程(如http://john.guen.in ...所述)

send_file '/path/to.png', :x_sendfile => true, :type => 'image/png'
Run Code Online (Sandbox Code Playgroud)

我想在heroku上部署我的应用程序.

heroku使用Nginx 0.6.32(参见http://docs.heroku.com/aspen).

是否x_sendfile在Heroku的作品?

这是我在Nginx http://wiki.nginx.org/NginxXSendfile找到的内容

干杯

Eli*_*cum 5

X-Sendfile不适用于Heroku.Heroku Google小组的这个主题提供了更多详细信息:什么是rails3_disable_x_sendfile?