Enable brotli, its a no brainer

During some random surfing and i stumbled on an article about brotli i thought of giving it a try myself, see if it would render any success for emtay.

For those who don't know what brotli is, it is a compression algorithm comparable to gzip but much more efficient for text-based files.

The whole operation of enabling brotli in nginx only took about 5 minutes but the results are astonishing. The increase of performance between the two runs of lighthouse speak for themselves

Of course brotli is mainly effective with plain text. So don't generally enable it but use these settings in the sites-enabled section for optimal effect

server {

...

brotli on;

brotli_comp level 6;

brotli_types text/xml image/svg+xml application/x-font-ttf image/vnd.microsoft.icon application/x-font-opentype application/json font/eot application/vnd.ms-fontobject application/javascript font/otf application/xml application/xhtml+xml text/javascript application/x-javascript text/plain application/x-font-truetype application/xml+rss image/x-icon font/opentype text/css image/x-win-bitmap;

...

}