Is it possible to instruct Amazon S3 or Cloudfront to deliver certain static files (html, css, and javascript files) to be delivered with a compressed gzip header? Even if the .gz file is around on the server?
Is it possible to instruct Amazon S3 or Cloudfront to deliver certain static files
Share
The only way I’ve found to do this is to compress the file locally, upload it to S3, and the setup a
Content-Encoding: gzipheader for the file. This works, but the problem is that for any client that doesn’t accept encoded data then it will parse and read the compressed data of the file.