Skip to content

Enforce Brotli over Gzip for reverse proxy #162

@itsdax

Description

@itsdax

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions