AR ホームベーカリー

オイラのアウトプット用ホームベーカリー!

2016-08-02から1日間の記事一覧

Sent fileで0バイトのファイルが送られてくる時

わりと忘れがち。 /config/enviroments/production.rb Apacheの場合は「X-Sendfile」、Nginxの場合は「X-Accel-Redirect」を使う。 # Specifies the header that your server uses for sending files #config.action_dispatch.x_sendfile_header = "X-Sendfi…