treeherder/puppet
Ed Morley 23c4a5ea14 Bug 1258700 - Generate Brotli-compressed versions of static files
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.
2016-03-30 13:00:23 +02:00
..
files Bug 1221516 - Adds command to get vagrant databases and env back to a clean state 2015-11-04 13:44:48 +00:00
manifests Bug 1258700 - Generate Brotli-compressed versions of static files 2016-03-30 13:00:23 +02:00