Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
implement optional X-Sendfile support (Trac #4898) #4898
Original ticket http://trac.elgg.org/ticket/4898 on 42841697-05-17 by trac user mrclay, assigned to unknown.
Elgg version: 1.8
[https://github.com/owncloud/core/pull/114 An instructive pull request for Owncloud]. The pull request requires the site admin to set an ENV variable after enabling the HTTPd module, so PHP knows it can trust the X-Sendfile header won't just be ignored; probably a good strategy.
I'd like to do this while removing a bunch of boilerplate download code. I'm not sure is this method always results in Content-Type: octet-stream or if we can use it for icon serving (I assume the latter).