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: add default option #191

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bjohansebas
Copy link
Member

@bjohansebas bjohansebas commented Sep 27, 2024

A new option is added to determine the default behavior when Accept-Encoding is not sent by the client, defaulting to identity.

closes #83

@bjohansebas bjohansebas marked this pull request as ready for review September 28, 2024 00:30
@bjohansebas bjohansebas changed the title [WIP]: feat: add default option feat: add default option Sep 28, 2024
@bjohansebas
Copy link
Member Author

Hi @IamLizu, could you review this PR?

@IamLizu
Copy link
Member

IamLizu commented Oct 3, 2024

Hey @bjohansebas 👋

Sure, I will read the relevant issues and then review this PR 👍

@@ -37,6 +37,8 @@ module.exports.filter = shouldCompress

var cacheControlNoTransformRegExp = /(?:^|,)\s*?no-transform\s*?(?:,|$)/

var encodingSupported = ['*', 'gzip', 'deflate', 'identity']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we only supporting these?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the options supported by the package at the moment; support for Brotli is still in progress

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, then I will try to get a better understanding of this and get back to you.

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.

Force compression to client don't work
2 participants