Describe the feature
The response compression plugin will compress all response above a certain threshold, but it doesn't offer an opt-out for responses that are already compressed formats (e.g. files like mp4, jpg etc.)
The feature would be to expose an option to disable compression for certain procedures which don't need or want it.
Ideally this can be configured completely independently for any procedure and is not dependent on content-types or other headers. Somethng like the allow function from the OpenAPIReferenceHandlerPlugin. (a function which receives context anf returns a boolean whether to compress or not)
Additional information
Describe the feature
The response compression plugin will compress all response above a certain threshold, but it doesn't offer an opt-out for responses that are already compressed formats (e.g. files like mp4, jpg etc.)
The feature would be to expose an option to disable compression for certain procedures which don't need or want it.
Ideally this can be configured completely independently for any procedure and is not dependent on content-types or other headers. Somethng like the
allowfunction from the OpenAPIReferenceHandlerPlugin. (a function which receives context anf returns a boolean whether to compress or not)Additional information