I put assets in S3 with expiration headers that are successfully transferred to CloudFront distributions. However, requests after expiration do not cause CloudFront to request a new file from the source server.
I also find that query string version tokens do not force a new asset, and I do not want to use the full file name.
All this may be due to my poor knowledge of cache control headers, but I am starting to doubt that I am missing something critical about how CloudFront should work. CloudFront responses display headers as shown below.
Cache-Control: max-age=120
Expires: Tue, 07 Apr 2009 12:13:26 GMT
source
share