I am using S3 static website. There is a build process that recreates the website locally in the build. Then, I use aws s3 sync to update the changes to the existing objects.
However, aws s3 sync will reupload the unchanged files each and every time unnecessarily.
I know s3 sync has the following logic:
A local file will require uploading if one of the following conditions is true:
• The local file does not exist under the specified bucket and prefix.
• The size of the local file is different than the size of the s3 object.
• The last modified time of the local file is newer than the last modified time of the s3 object.