I have deployed my angular cli app through VSTS using automated build process. However I am facing js file caching problem. I have to refresh page for every deployment to see new changes. Please help me to solve this problem.
Thank You,
I have deployed my angular cli app through VSTS using automated build process. However I am facing js file caching problem. I have to refresh page for every deployment to see new changes. Please help me to solve this problem.
Thank You,
It is cached by internet browser, not related to the deployment process or web services.
You can add ?version
to the link, such as <script type="text/javascript" src="myfile.js?1500"></script>
, you can change the version
if the js file is changed.
A related thread: How can I force clients to refresh JavaScript files?