Enabling both gzip & brotli

Dewangga Bachrul Alam dewanggaba at xtremenitro.org
Fri Nov 10 21:01:26 UTC 2017


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello!

On 11/10/2017 11:36 PM, rihad wrote:
> Hello. Can I enable both brotli & gzip?

Yeah sure, I was test it using this module
https://github.com/google/ngx_brotli

> brotli on; gzip on;
> 
> with the idea to support both newer & older clients, but still not
> do any kind of double compression.

If the browser didn't support "br" yet, it should be fallback to gzip.

> Thanks.
> 
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?2,277282,277282#msg-277282
> 
> _______________________________________________ nginx mailing list 
> nginx at nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
> 
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCAA5FiEEZpxiw/Jg6pEte5xQ5X/SIKAozXAFAloGE6IbHGRld2FuZ2dh
YmFAeHRyZW1lbml0cm8ub3JnAAoJEOV/0iCgKM1wJVMQAIJb8ulMQwpUn68kch42
Ru4RWjScnbVfzSDOqF4zwnHJfARGyhfzpRHC5YCf7DboF6StAonacFbqb1Z/QSPI
zeVzHlt9rQt/EKDm2quuw3ctONDdyLCwCQjv0BXS4w7nAYdUorH1azBIQv3eURQX
NWTinCRO0lhZynyMrW9BKWHjgSxdsx38uUwZiplxF8fTlY/wVW//bw2DVoGPyOVs
LoFqPp0G2aaVT68P1z6eVTD5gAkl7jEzeufuGsPxu+i/3iSMnZUAgMcf1SrR9UjK
OlwweR+y1MUdsq1b3ZcKPSKOoOEaowOT5qbILlJ3Wk+NlZjdNsVUxQ9JisfRb4EI
FfJVaku6Te7ibbL2wnxh+TRlUuQ6fh/3RdH9tEQpK1nfWQWER69sbZma5ld7DCF8
NsmAMEtkse/dNlB1+Uvbmo3ahaTdYwgwPq9RXLQAfOQoYAItkx0vZm1Gd0T91X/I
XgFqZoWgbA4ciOSd2JlDpOImqnUM0w2+/U7gUT5BwTgVhX0xXftAbeRseENKmXEL
z6ikPRubTHRMMLSD6fw/1GHoO5tx1PHhR6EWQtzrUDPvvfon6y18TcxAZMjnvuJq
Ewm1lX2L5/JZSI32x9CmdtsQ4TeDl5jn1Aer9zH4LMygrsLlhxBwUK5m12S7i2cB
L7oVAyjlSApkXHu9azOQ2Vk3
=m8pM
-----END PGP SIGNATURE-----


More information about the nginx mailing list