Thank you Jeremy! I was fighting with this problem half a day. You article has save a lot of my time!
In case someone has apache instead of nginx: “EnableSendFile” is responsible for handle sendfile feature. In openSUSE for example it’s located in /etc/apache2/server-tuning.conf