Hi,
I have in my serverless file following tag -
provider:
name: aws
runtime: nodejs8.10
apiGateway:
minimumCompressionSize: 1024
However it is not compressing the response. What are the steps to enable compression.
Thank you
Nilesh
Hi,
I have in my serverless file following tag -
provider:
name: aws
runtime: nodejs8.10
apiGateway:
minimumCompressionSize: 1024
However it is not compressing the response. What are the steps to enable compression.
Thank you
Nilesh
Hi,
Did you test it with 0?
The
minimumCompressionSize
property has a non-negative integer value between 0 and 10485760 (10M bytes). It measures the compression threshold. If the payload size is smaller than this value, compression or decompression are not applied on the payload. Setting it to zero allows compression for any payload size. (From AWS doc: Enable payload compression for an API - Amazon API Gateway)
Like:
provider:
name: aws
apiGateway:
minimumCompressionSize: 0