We have an application where angular is used in the frontend. Whenever we do the deployments, some of the functionalities are not working properly until we clear the complete cache in the browser. We knew it this is happening due to cache. Is there any way to fix this issue? We need as soon as they reload the page after the deployment, it should work. Especially in MAC, we are facing the issue frequently as they do not switch off their system & close the browser.
Any help would be appreciated.
Update 1: Angular generates the files with different hash on every build, but still we face this issue.
Also we tried adding these codes in index.html. But nothing helped us to resolve this issue.
<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">