-
-
Notifications
You must be signed in to change notification settings - Fork 240
Compression 1.8.0 does not work with Express 4.21.2 #224
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
Comments
Hi @oliver-moran, could you please update the threshold value as follows?
This ensures that all responses, regardless of size, are compressed. If this doesn't work as expected, could you check the response headers and share them here? Specifically, look for the |
Fresh test case but specifying
Uninstalling Compression and reinstalling @1.7.5:
OK. I see it. So Brotli is default now? 🤦 |
Yep, now Brotli is the default. |
I'll see myself out... |
Environment information
Version: Compression 1.8.0 with Express 4.21.2.
Platform:
Node.js version: v18.19.1 and v22.13.0
Any other relevant information:
index.js
package.json
:The above will install compression 1.8.0 and files served will not be compressed. Uninstalling compression and reinstalling it at 1.7.5 will fix the problem:
The text was updated successfully, but these errors were encountered: