So, This way we have handled cache busting on CloudFront side. But still, we need to bust cache on the user’s browser.
Update Index.html
Add Meta tag with cache-control information in the index.html
<meta http-equiv=”Cache-Control” content=”no-cache, no-store, must-revalidate” />
<meta http-equiv=”Pragma” content=”no-cache” />
<meta http-equiv=”Expires” content=”0" />
This will make sure that index.html is never cached in the user’s browser. So now whenever we make a release, users will get the latest version only.
That’s it. Thank you for reading.
Also read: Angular App Image Upload to AWS S3 with FineUploader.