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

feat: --compression-level for gzip responses #56

Merged
merged 4 commits into from
Oct 5, 2023
Merged

feat: --compression-level for gzip responses #56

merged 4 commits into from
Oct 5, 2023

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Oct 5, 2023

Accepts 0 to 9, defaults to no compression (0).

Includes handling of Accept-Encoding, setting of Content-Encoding, adjustment of Etag and setting proper Vary header.

@rvagg
Copy link
Member Author

rvagg commented Oct 5, 2023

Running this on my wikipedia mirror and it looks like I'm compressing close to 50% on average, which is pretty neat.

@rvagg rvagg merged commit 91ba296 into master Oct 5, 2023
7 checks passed
@rvagg rvagg deleted the rvagg/gzip branch October 5, 2023 11:03
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.

2 participants