- Newest
- Most votes
- Most comments
It may happen occasionally that a file cannot be compressed, and in that case, the uncompressed file pulled from the origin is cached and served to users until it's no longer present in the cache. When the uncompressed file is removed from the cache, a new attempt will be made to compress the file when it's pulled from the origin again.
Also, if you read the file via CloudFront before you enabled compression, the uncompressed file pulled into the cache would continue to be served to users in the same manner, although the cache invalidation you mentioned having done would've evicted that uncompressed copy.
The best-effort nature of the compression feature is explained in this documentation article: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html#compression-skipped
Relevant content
asked a year ago
asked a year ago
asked 2 years ago
