Rails 3 x_sendfile on heroku
Rails 3 allow to send static files directly and more performantly to HTTP clients and bypassing your app server process (as describe开发者_开发技巧d see http://john.guen.in...)
send_file '/path/to.png', :x_sendfile => true, :type => 'image/png'
I want to deploy my app on heroku.
heroku use Nginx 0.6.32 (see http://docs.heroku.com/aspen).
Does x_sendfile
works on heroku?
Here is what i found on Nginx http://wiki.nginx.org/NginxXSendfile
Cheers
X-Sendfile doesn't work on Heroku. More details are available in this thread from the Heroku Google group: What is rails3_disable_x_sendfile?
精彩评论