开发者

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?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜