?
avatar 810
810
20 Dec 2016

Information

The Brotli is the new compression by google, and has now support of 4 browsers (Chrome, Firefox, Edge, Opera)

its like gzip only quicker and smaller compressions.

Extra info

https://en.wikipedia.org/wiki/Brotli
https://blogs.windows.com/msedgedev/2016/12/20/introducing-brotli-compression/#8Cm1jMwZZgyCWYhW.97
https://blog.cloudflare.com/results-experimenting-brotli/

avatar 810 810 - open - 20 Dec 2016
avatar joomla-cms-bot joomla-cms-bot - change - 20 Dec 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Dec 2016
avatar ggppdk
ggppdk - comment - 20 Dec 2016

its like gzip only quicker and smaller compressions.

Smaller yes (mainly on english), but quicker not,

On decompression it is a little slower than gzip, so it is fine,
but it is multiple times slower when compressing,
-- in fact from what i have read it is silly slow e.g. 25x slower than gzip, ??
and thus not suitable for dynamic pages

Enabling it on web-sites that only have a few pages and combine it with Joomla page caching, then maybe
-- but on sites with filter forms and a lot of content, it will eat your CPU resources fast

If this is added it should be configurable to use it only on specific pages for which page caching is enabled too

avatar 810
810 - comment - 20 Dec 2016

see: https://quixdb.github.io/squash-benchmark/

its slower yes, but not 25x

avatar ggppdk
ggppdk - comment - 21 Dec 2016

its slower yes, but not 25x

Right,
my comment was partly incorrect, it is 10x-25x slower only at its maximum compression ratio, comparing to level 5 or 6 of gzip (more than this gives little no benefits),

-- when targeting a double compretion ratio than gzip it is only 15%-30% slower than gzip

so yes, it is worthwhile using it instead of gzip

avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Dec 2016

yes, it seems brotli is going to get wide use but not yet supported by every vendors, for instance, nginx does not support it yet in the core, edge still does not support it, neither safari (http://caniuse.com/#feat=brotli).

But IETF published an information RFC (https://tools.ietf.org/html/rfc7932) and many vendors are moving in to support it. So it's problable that it will be a gzip/deflate alternative soon.

avatar piotr-cz
piotr-cz - comment - 29 Dec 2016

I think it's responsibility of server (apache/ ngix/ iis), not an application.

Although at this moment we have an option in global configuration to enable gzip compression for html output, I prefer to set it in the .htaccess file because I can configure there compression of other resources too.

Compression of html output makes relatively small impact compared to other resources (js/ css/ images) which must be configured outside application anyway.

avatar andrepereiradasilva
andrepereiradasilva - comment - 29 Dec 2016

I think it's responsibility of server (apache/ ngix/ iis), not an application.

Agree, but ... the same is valid for gzip ... which joomla supports ...
image

avatar nibra nibra - change - 16 Mar 2017
Status New Discussion
avatar nibra nibra - change - 16 Mar 2017
Category Feature Request
avatar rdeutz rdeutz - change - 30 Jun 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-06-30 20:37:47
Closed_By rdeutz
avatar rdeutz
rdeutz - comment - 30 Jun 2017

Closing this here because there is a RFC for 4.0 #15804 and we don't need two open issues.

avatar rdeutz rdeutz - close - 30 Jun 2017

Add a Comment

Login with GitHub to post a comment