nprapps/interactive-template

Remove the gzip stage from S3 uploads

Closed this issue · 2 comments

Apparently they do this for us now?

Note we should evaluate based on filetype-we have some oddballs that it may make sense to keep manually gzipped. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html#compressed-content-cloudfront-file-types

Apparently (according to testing at the LAT), CloudFront compression removes the Content-Length and ETag headers from responses. Since we use the latter extensively for avoiding unnecessary bandwidth in unchanged response polling (e.g., election data), we should not rely on CloudFront's compression.