expressjs / expressjs/compression

Allow to choose the PREFERRED_ENCODING order

Open
#220 11 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.