How to clear AWS CloudFront cache
AWS CloudFront will cache your website's content on its edge locations based on the TTL values configured for your CloudFront distribution. Depending on your Object Caching configuration, there are chances that old content will be displayed to your website visitors for a period of time after you've updated your website's content.
You can remove AWS CloudFront's edge caches by invalidating the specific objects in your CloudFront distribution.
Steps to clear AWS CloudFront cache:
Go to CloudFront dashboard in AWS Console.
Related: AWS CloudFront Management Console
Click on the CloudFront distribution that you want to delete the cache of.
Click on the Invalidations tab of the distribution.
Click on the Create invalidation button.
Enter the paths of the objects to be invalidated based on the given examples.
Using /* for the path will clear all cache.
Click on the Create invalidation.
Wait for the Cloudfront cache to to completely cleared.