-
Notifications
You must be signed in to change notification settings - Fork 239
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
base: master
Are you sure you want to change the base?
Conversation
37d0789
to
8880f40
Compare
8880f40
to
db89408
Compare
db89408
to
5d6a827
Compare
Hi @IamLizu, could you review this PR? |
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'] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
A new option is added to determine the default behavior when
Accept-Encoding
is not sent by the client, defaulting to identity.closes #83