expressjs / expressjs/compression
Allow to choose the PREFERRED_ENCODING order
Open
awaiting more info
bug
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 255
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 3
Description
Hello ,
Since v1.8.0, the preferred compression method is brotli.
I'm using the Compression module in an aws lambda behind Api Gateway but brotli compression is not handled by it.
As most of the clients are now passing ` gzip, deflate, br` as default `Accept-Encoding` header this cause decompression errors.
It would be nice to have an option that allows to change the order of the PREFERRED_ENCODING array to be able to have gzip as preferred compression method.
Contributor guide
Assessment
This issue has not been assessed yet.