зеркало из https://github.com/mozilla/treeherder.git
23c4a5ea14
WhiteNoise 3.0 now supports serving Brotli-compressed files to browsers whose `Accept-Encoding` includes `br`. Note: Both Firefox and Chrome only support Brotli over HTTPS. To take advantage of this, the Brotli package just needs to be available when the compression tool (`python -m whitenoise.compress`) is run. See: http://whitenoise.evans.io/en/latest/changelog.html#brotli-compression-support http://whitenoise.evans.io/en/latest/django.html#brotli-compression The WhiteNoise docs say to use an unofficial PyPI package (brotlipy), however this has a dependency on libffi (via cffi) and the official repo now has it's own Python wrapper that does not. As such, this commit instead uses the official Brotli package from GitHub, whilst we wait for the official PyPI release (https://github.com/google/brotli/issues/72). The Brotli install works fine on stage/prod/Heroku/Travis. The Vagrant environment was missing g++, which is now installed during provision. |
||
---|---|---|
.. | ||
files | ||
manifests |