I'm doing `send_file` with Nginx using `X-Accel-Redirect` in a pretty straightforward way, but browsers won't download the full content. It's always cut off in the middle and the rest is truncated, like at 40KB for a 4MB file.

Rails 4.2.1 / Nginx 1.6.2

What is interrupting the file download?

production.rb

```
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX

```

download\_controller.rb

```
class DownloadController
  def download
    send_file '/full/path/to/file.csv'
  end
end

```