- 
                Notifications
    
You must be signed in to change notification settings  - Fork 37
 
Description
This middleware looks useful, but I'm not sure how to use it. Perhaps more examples with explanations would help?
I'd like to use brotli if the client accepts it, and fallback to gzip if not. In the readme, your example disables brotli and later states,
Brotli compression is supported in node v11.7.0+, which includes it natively.
Is brotli disabled because Node includes it natively or because that's just the example?
The current encodings are, in order of preference: br, gzip, deflate
Does the order of the encodings in the options object matter or is the "preference" always the same order?
Does one encoding fallback to another if not supported?
I'm unable to help with contributing these changes because I don't understand how it works, but I think answering these questions in the readme would help others understand. Or maybe it's just me..