Getting Gzip to Work With Amazon's CloudFront and Nginx
I spent way too much time trying to figure out why CloudFront wouldn’t accept and serve my gzip’d content so I’m posting this hoping that I can save someone else some time.
Instead of diving into the issues with cloudfront and nginx I’ll just provide you with the settings that ended up working for me. The two settings to make note of are the gzip_http_version which is set to 1.0 and the gzip_proxied setting which is set to any. Buffers, comp_level and types can all be changed to fit what you’re trying to serve.
1 2 3 4 5 6 7