| Syntax: | sendfile on | off |
| Default: | off |
| Context: | http server location if in location |
| Reference: | sendfile |
Directive activate or deactivate the usage of sendfile().
sendfile() copies data between one file descriptor and another. Because this copying is done within the kernel, sendfile() is more efficient than the combination of read(2) and write(2), which would require transferring data to and from user space.
Read more at: https://www.kernel.org/doc/man-pages/online/pages/man2/sendfile.2.html
How sendfile helps : http://www.techrepublic.com/article/use-sendfile-to-optimize-data-transfer/1044112