Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #11291: Add X-Sendfile support for high performance file downloads
X-Sendfile is a header that is added to the output response from PHP that points to a local file on the disk. Upon receiving the header once the PHP script has terminated, the web server proceeds to replace all content in the HTTP response with the contents of the file served up locally from the disk. Headers set in the PHP script are usually kept in-tact (depending on the web server implementation as to what gets changed). This technique is meant to improve performance as it now becomes possible for the web server to use highly efficient file serving functions to serve up the static content. For example, a web server could use a zero-copy splice() call on Linux platforms to prevent unnecessary buffering, drastically improving performance. Servers that support X-Sendfile (or equivalent, as determined by the $g_file_download_xsendfile_header_name option) include: * Lighttpd * Cherokee * Apache (with mod_xsendfile) * nginx
- Loading branch information
1 parent
45771c6
commit b50a52a
Showing
3 changed files
with
59 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters