I m trying to gzip compress the img I m serving through CloudFront
. My origin is S3
Based on several articles/blogs on aws, what I did is:
1) Set "Content-Length"
header for the object I want to compress. I set the value equal to the size appeared on the size
property box
2) Set the Compress Objects Automatically
value to Yes
in the Behaviour
of my cloud distribution.
3) I invalidated my object to get a fresh copy from S3
.
Still I m not able to make CloudFront
gzip my object. Any ideas?