Apache 2 mod_xsendfile
approval
From the page:\r\n\r\n\"mod_xsendfile is a small Apache2 module that processes X-SENDFILE headers registered by the original output handler.\r\n\r\nIf it encounters the presence of such header it will discard all output and send the file specified by that header instead using Apache internals including all optimizations like caching-headers and sendfile or mmap if configured.\r\n\r\nIt is useful for processing script-output of e.g. php, perl or any cgi.\"