I'm facing an issue regarding cache in browser. Whenever I'm deploying new Angular UI the cache of Older remains untill I clear the browser cache manually.
How can I solve this
Thanks in advance for help
Need a solution to solve this problem.
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalI'm facing an issue regarding cache in browser. Whenever I'm deploying new Angular UI the cache of Older remains untill I clear the browser cache manually.
How can I solve this
Thanks in advance for help
Need a solution to solve this problem.
index.htmlfile. It is very small, so performance should not be a big deal. If you are using output hashing, the new UI should load right after deployment. Which web server technology do you use? Nginx / IIS / Apache? Then we can help you setting up the right config.index.html, where you cannot apply output hashing via query params.Cache-Control,If-Modified-Since,ETag, etc.) affect all resources: JS, CSS, but also images, fonts, as well as HTML files. But OK, let's assume that's not what's asked here. I am fairly confident that "how do I do cache busting (for one file)" is not a new and unique problem to solve. After all, this has only been an issue in web development for the last ~30 years or so. Feel free to find a better duplicate.