Nginx HTTPS users, how many are using Brotli compression for performance?

eva2000

Habitué
Joined
Jan 11, 2004
Messages
1,782
Curious how many HTTPS users also deploy Brotli compression instead of Gzip to reduce their static web page assets' sizes ?

Centmin Mod Nginx server uses can enable Brotli compression over HTTPS to reduce their web page static asset sizes and save on bandwidth https://community.centminmod.com/th...sion-for-centmin-mod-nginx-web-servers.10688/ :)

Brotli compression for web servers is an alternative to Gzip compression for static files. You can read about Brotli compression in web server context over on Cloudflare's blog and the current state of web browser adoption at http://caniuse.com/#search=brotli. Google Play Store on a daily basis saves 1.5 petabytes (1.5 million gigabytes) of bandwidth each day using Brotli !
 
Last edited:

pierce

Habitué
Joined
Apr 10, 2016
Messages
1,171
Why is adoption slow?

I googled it and it goes back to 2015. It's now 2017..
 

eva2000

Habitué
Joined
Jan 11, 2004
Messages
1,782
Why is adoption slow?

I googled it and it goes back to 2015. It's now 2017..
Web server support and requirement for HTTPS with SSL certificates probably why Brotli adoption is slow. And probably the fact that alot of folks don't even know Brotli exists and is available if their web server supports it !
 

Monkey Wrench

Enthusiast
Joined
Aug 18, 2007
Messages
131
One thing that initially withhold me was the fact I had to turn off gzip to let brotli also work on text/html mime types since gzip is permantely enabled for text/html. I'm sure there's probably a workaround for it to serve gzip to older browsers, but I haven't bothered looking into it.

Though the brotli gains don't look that impressive based on a single page load, it looks pretty effective in the monthly stats with -in my case- an increase of visitors, pages and hits while the used bandwidth is lower than before
 

eva2000

Habitué
Joined
Jan 11, 2004
Messages
1,782
One thing that initially withhold me was the fact I had to turn off gzip to let brotli also work on text/html mime types since gzip is permantely enabled for text/html. I'm sure there's probably a workaround for it to serve gzip to older browsers, but I haven't bothered looking into it.
not sure what setup you have, but for ngx_brotli module for Nginx it's all taken care of automatically by web browser supported content encodings so if browser doesn't support brotli it falls back to gzip. That's how my Centmin Mod Nginx based LEMP stack environment works with ngx_brotli module :)
 

mysiteguy

Migration Expert
Joined
Feb 20, 2007
Messages
3,102
Adoption is slow because a great many web servers use Linux distributions such as Centos which focus on stability. not cutting edge.

That being said, I run Brotli on my Centos 6 and 7 boxes. I also have static files precompressed with both brotli and zopfli (for browsers which do not support brotli).
 
Last edited:

eva2000

Habitué
Joined
Jan 11, 2004
Messages
1,782
Adoption is slow because a great many web servers use Linux distributions such as Centos which focus on stability. not cutting edge.

That being said, I run Brotli on my Centos 6 and 7 boxes. I also have static files precompressed with both brotli and zopfli (for browsers which do not support brotli).
true for CentOS servers indeed :)

I also precompress where possible. I wrote a brotli.sh script to do it https://github.com/centminmod/brotli.sh :)

I use cloudflare ngx_brotli_module. It takes precedence over gzip.
yeah aware of cloudflare's ngx_brotli module. Using Google's ngx_brotli module myself https://github.com/google/ngx_brotli :)
 
Top