I am working on a web application I updated the code In server when coming to the browser it is loading old files only when I try with hard refresh multiple times it is loading new files I tried with meta tags
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />
window.location.reload();
But it is not working.
I am maintaining the version for script files and CSS files. for version management and minification I am using grunt.
For existing users who are already in my application (live users/users who are regular). The script is not updating to check the version how I can update the existing script in the browser
As per my knowledge browser is rendering script from browser cache but I don’t know when it gets the script from the server
The same issue with CSS also.