开发者

Rails 3 x_sendfile on heroku

开发者 https://www.devze.com 2022-12-21 22:54 出处:网络
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...)

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消