Content delivery with CloudFront · Question 3 of 12
After an update, users still see the old CSS file from the CloudFront cache. Which approach most reliably avoids this for future updates?
1 answer is correct. Easy Created with AI
Show answer
Answer
- C File names with a version or hash, e.g. style.3f9a.css, on every change
Explanation
With versioned file names, every new version is a new object that is not in the cache. Invalidations work too, but cost money beyond a free allowance and take some time. Waiting for the TTL does not help with the next update.