easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

add support for Brotli

Open aegis123 opened this issue 10 years ago • 11 comments

Maybe add support for the compression algorithm brotli could be added to nginx next to GZIP. Brotli is supposed to offer better compression than gzip especially for static content. Its supported by by both firefox and chrome see caniuse.com and created by Google, they also offer a nginx module ngx_brotli.

aegis123 avatar Aug 29 '16 14:08 aegis123

Good addition!

renatonascalves avatar Sep 01 '16 21:09 renatonascalves

This might interest someone: https://github.com/tlovett1/brotli-nginx-php7-config/blob/master/nginx.conf

renatonascalves avatar Oct 10 '16 14:10 renatonascalves

also we should keep in mind that the compressing data with brotli is generally slower than gzip but it could off course be cached somewhere.

aegis123 avatar Oct 10 '16 14:10 aegis123

@aegis123 compressing data with brotli is generally slower

According to google whitepaper, it is even faster (less cpu) then gzip! I would love an Brotli integration

EdwardBlack avatar Feb 10 '17 21:02 EdwardBlack

This sounds like a great experimental, enabled per-site addition until we see how it performs!

I'm particularly interested in the code @tlovett1 is working on with PHP7 and Nginx support. The fact that Google is behind it to improve site speed is, of course, another plus! ;)

MattyLB avatar Feb 14 '17 05:02 MattyLB

We are switching to https://openresty.org/ so adding support for https://github.com/google/ngx_brotli is something we wont be doing anytime soon.

rahul286 avatar Jun 02 '18 12:06 rahul286

@rahul286 https://github.com/brandonpapworth/docker-openresty/pull/6/files

renatonascalves avatar Jun 02 '18 12:06 renatonascalves

@renatonascalves

https://github.com/brandonpapworth/docker-openresty isn't official openresty build. Already no activity on it from a year.

If openresty itself adds support for it, we will consider it.

rahul286 avatar Jun 03 '18 08:06 rahul286

Too bad... hope this request can be moved upstream then :)

RavanH avatar Jun 15 '18 19:06 RavanH

@rahul286 Understood! Totally reasonable. Thank you. :)

renatonascalves avatar Jul 05 '18 13:07 renatonascalves

We are leaving this to external contributors

rahul286 avatar Aug 03 '18 13:08 rahul286