2017-09-29 16:45:20 +02:00
|
|
|
WhiteNoise provides radically simplified static file serving for Python
|
|
|
|
web apps.
|
|
|
|
|
|
|
|
With a couple of lines of config WhiteNoise allows your web app to serve
|
|
|
|
its own static files, making it a self-contained unit that can be
|
|
|
|
deployed anywhere without relying on nginx, Amazon S3 or any other
|
|
|
|
external service. (Especially useful on Heroku, OpenShift and other PaaS
|
|
|
|
providers.)
|
|
|
|
|
2018-10-11 12:55:56 +02:00
|
|
|
It's designed to work nicely with a CDN for high-traffic sites so you
|
|
|
|
don't have to sacrifice performance to benefit from simplicity.
|
2017-09-29 16:45:20 +02:00
|
|
|
|
|
|
|
WhiteNoise works with any WSGI-compatible app but has some special
|
|
|
|
auto-configuration features for Django.
|
|
|
|
|
|
|
|
WhiteNoise takes care of best-practices for you, for instance:
|
|
|
|
|
|
|
|
- Serving compressed content (gzip and Brotli formats, handling
|
|
|
|
Accept-Encoding and Vary headers correctly)
|
|
|
|
|
2018-10-11 12:55:56 +02:00
|
|
|
- Setting far-future cache headers on content which won't change
|