Next: Removing Content so CloudFront Won't Distribute It, Previous: Adding and Accessing Content That CloudFront Distributes, Up: Adding Removing Replacing Content [Index]
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/UpdatingExistingObjects.html
There are two ways to update existing content that CloudFront is set up to distribute for you:
We recommend that you use a version identifier in file names or in folder names, to help give you more control over managing the content that CloudFront serves.
When you update existing files in a CloudFront distribution, we recommend that you include some sort of version identifier either in your file names or in your directory names to give yourself better control over your content. This identifier might be a date-time stamp, a sequential number, or some other method of distinguishing two versions of the same object.
Although you can update existing files in a CloudFront distribution and use the same file names, we don’t recommend it. CloudFront distributes files to edge locations only when the files are requested, not when you put new or updated files in your origin.
If you update an existing file in your origin with a newer version that has the same name, an edge location won’t get that new version from your origin until both of the following occur:
If you use the same names when you replace files, you can’t control when CloudFront starts to serve the new files. By default, CloudFront caches files in edge locations for 24 hours. For example, if you’re replacing all of the files on an entire website: