Skip to content

Run zstd before brotli if both are enabled #44

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kamermans
Copy link

Since Safari doesn't support zstd yet, I have to keep brotli enabled, however, this module is run after brotli, so if both are supported, brotli is used. This is a problem since all browsers that support zstd also support brotli, so zstd is never actually used.

This PR reorders the module/filter before brotli so it takes priority (since it's faster and the compression is better).

I took this patch from #40 by @mklooss (thanks!)

@SuperSandro2000
Copy link
Contributor

SuperSandro2000 commented Feb 6, 2025

Is this a duplicate of #31?

Or this is a bug fix for f4ba115 ?

@mklooss
Copy link

mklooss commented Feb 12, 2025

@SuperSandro2000 you need this patch when u want brotli and zstd running at the same time.
The Filters Running fine, but "static" Files does not work properly.
Bcz Brotli always wins.

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

Successfully merging this pull request may close these issues.

3 participants