When I deploy a new version of my Angular app, the old version still persist. Only, the workaround which is fixing is a "hard" refresh on the browser. (This is not an acceptable solution).
I am using Yeoman (generator-angular) for my project. I looked at the Gruntfile.js
and see that it executes a task that renames everything during build including images, js, css. Only file that is not being renamed is index.html
. What can I do to index.html
so that browser will load this file instead of using the cached version?