You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 15, 2021. It is now read-only.
Add the plugin and its configuration to your serverless.yml file:
plugins:
- serverless-content-encodingcustom:
contentEncoding:
minimumCompressionSize: 0# Minimum body size required for compression in bytes
minimumCompressionSize must be an Integer which greater than or equal 0.
If contentEncoding is not configured, minimumCompressionSize will be set to default value which is 0 bytes.
If you want to disable Content Encoding, set minimumCompressionSize to null.
Usage
This plugin will be triggered during deployment process
$ serverless deploy
Note
This plugin is to enable Content Encoding on API Gateway for response compression. If your are looking for binary files support, please use serverless-apigw-binary
Thanks @evgenykireev for the recommendation of using MinimumCompressionSize in CloudFormation instead of CreateDeployment API
About
Serverless plugin to enable content encoding for response compression