views:

260

answers:

1

Hi,

Rails 3 allow to send static files directly and more performantly to HTTP clients and bypassing your app server process (as described 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

A: 

I've just tried this and I don't think it does. Was hoping to see another answer here. I'm Getting a 500 Internal Server Error : (

tsdbrown