Skip to content

Use X-Accel-Redirect or X-Sendfile when possible for reduced resource usage #13082

@rkkoszewski

Description

@rkkoszewski

From what I could observe, Nextcloud uses PHP to send the stored files to the client, which can easily time out for huge files, use a lot of RAM and is generally slower especially on low powered or older servers.

It would be great to have an option to use X-Accel-Redirect (Nginx) or X-Sendfile (Apache) when possible to take advantage of the web server's optimised native capabilities.

It might not be possible to use it for encrypted storages or remote storages, but it would greatly reduce the stress on the server for local files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions