Delete S3 content cache with AWS CloudFront Invalidation
When creating an SPA with CloudFront + S3, deploying the file to S3 was not immediately reflected, so use Invalidations to remove the cache.
Click “Create Invalidation” under CloudFront Invalidations.
index.html index.js style.js
Write the file you want to remove the cache as shown above and click “Invalidate”.
This deletes the cache immediately.