spiritedmedia / systems

Code and documentation for building, deploying, and serving code.
1 stars 1 forks source link

Add Support for Brotli Compression #11

Open kingkool68 opened 7 years ago

kingkool68 commented 7 years ago

Brotli is a compression algorithm from Google that is more efficient compared to gzip. Our CDN, KeyCDN, announced support for it today (https://www.keycdn.com/blog/keycdn-brotli-support/?utm_campaign=2017-02-16-brotli-support) if the origin server serves brotli compressed files.

This would require recompiling Nginx with a new module enabled: https://afasterweb.com/2016/03/15/serving-up-brotli-with-nginx-and-jekyll/

Or we can just wait for EasyEngine to support it one day: https://github.com/EasyEngine/easyengine/issues/759

kingkool68 commented 7 years ago

Also of interest: https://github.com/tlovett1/brotli-nginx-php7-config/blob/master/nginx.conf#L28-L37