We have an Angular 7 application and we are using Angular CLI for the build, we build the application with:
ng build --prod
We have checked and the hash is added to the filenames. We have also set index.html with the following:
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate"> <meta http-equiv="Pragma" content="no-cache">
Despite this we are still having to ask our users to ctrl+F5 after a release to see the latest version, it appears Chrome is caching the index.html.
Is there anyway around this, a better way around this. We are considering with each release changing the index.html file to append the current date and time to the name and the angular.json but we would prefer to solve this using the tools provided.
Any help appreciated.