We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the Django apps serves users MEDIA files by Django's FileResponse...
A better way is that the server used sendfile. A solution is https://pypi.org/project/django-sendfile2/ with a proper server. But Caddy doesn't support this, yet: caddyserver/caddy#3828
The text was updated successfully, but these errors were encountered:
In combination with gunicorn we can use OS "sendfile" direct, e.g.:
file_wrapper = environ.get("wsgi.file_wrapper", FileWrapper) return file_wrapper(response.file)
see: https://github.com/evansd/whitenoise/blob/f67cdf3a1afcaa3ee9f636f247ccfee256c9c7be/whitenoise/base.py#L89-L98 https://docs.python.org/3/library/wsgiref.html#wsgiref.util.FileWrapper
Sorry, something went wrong.
No branches or pull requests
Currently the Django apps serves users MEDIA files by Django's FileResponse...
A better way is that the server used sendfile. A solution is https://pypi.org/project/django-sendfile2/ with a proper server. But Caddy doesn't support this, yet: caddyserver/caddy#3828
The text was updated successfully, but these errors were encountered: