Gzip Compression Support for Amazon CloudFront

Mo zip, mo better.

Posted by Mike Apted on December 22, 2015

Amazon announced last week that CloudFront will now support enabling Gzip compression at the edge.

This is great news if, like this site, you are running statically hosted sites from an S3 bucket. In the past you could hack your way to Gzipped files by precompressing content in your workflow before uploading to S3 but... ugh.

Even dynamic sites that were previously Gzipping files on the fly can now reduce code complexity, compute cycles, etc. and let CloudFront handle that for you at the edge.

The functionality is free, simply enable it in your distribution's behaviours where appropriate and you are done. It will likely even save you money as your bandwidth costs will decrease if you were serving uncompressed static content in the past.


Category

aws

Tags

cloudfront performance