Hello, I am having trouble figuring out how to configure Nginx to always prefer Brotli over Gzip.
For example, if the request(Accept-Encoding: gzip, deflate, br) is sent to Nginx, and the reverse proxies location handles compression in gzip, how do I tell Nginx to gunzip content and compress with brotli?
In the case above, all responses will result in gzip compression. However, if the backend does not perform gzip compression, then the response to the original caller would be in br.
Appreciate any help on this matter. Thanks!