Welcome! Log In Create A New Profile

Advanced

Enabling both gzip & brotli

Posted by rihad 
rihad
Enabling both gzip & brotli
November 10, 2017 05:40PM
Hello. Can I enable both brotli & gzip?
brotli on;
gzip on;

with the idea to support both newer & older clients, but still not do any
kind of double compression.
Thanks.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277282,277282#msg-277282

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
shiz
Re: Enabling both gzip & brotli
November 10, 2017 08:20PM
Yes, but I prefer to generate the *.br first and use
brotli_static on;
instead

The browser will happily download the *.br if supported; otherwise gzip will
be selected.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277282,277284#msg-277284

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Dewangga Bachrul Alam
Re: Enabling both gzip & brotli
November 10, 2017 10:10PM
-----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@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-----
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login