How to handle cloudfront cache after deployment


we have our Angular2 code in S3 .And we access it via Cloudfront.
It works fine.
But after a deployment to Angular2 , we want every code to be invalidated from Cloudfront.
What are the best approaches for clearing cache after deployment?
How to handle cloudfront caching?


You can do both deployment and cache invalidation with the help of aws-cli.

Leave a Reply