Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gzip_static takes precedence over brotli_static #123

Open
szanni opened this issue Aug 16, 2021 · 1 comment
Open

gzip_static takes precedence over brotli_static #123

szanni opened this issue Aug 16, 2021 · 1 comment

Comments

@szanni
Copy link

szanni commented Aug 16, 2021

When using both gzip_static and brotli_static, the gzip filter will take precedence over the brotli one with clients that accept both encodings.

gzip_static on;
brotli_static on;

curl -IL https://... -H "Accept-Encoding: gzip, br"
will return
content-encoding: gzip

I would expect to be served the smaller brotli compressed version as is the case with the non-static filters.

I am using dynamic modules on FreeBSD. I could not figure out if the problem is due to the order the filter modules are loaded (there seems to be no config for the brotli_static module) or possibly even an upstream issue with the gzip_static module.

@TipaOpa
Copy link

TipaOpa commented Sep 23, 2021

i faced this problem too.
I solved this problem by removing disable_symlinks on from = $ document_root;
But this is a necessary setting and I don't want to remove it from the configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants