Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to clear browser cache when launching updated version of application using grunt? #1673

Open
jayudhandha opened this issue Apr 15, 2019 · 0 comments
Labels

Comments

@jayudhandha
Copy link

It's not an issue, It's a feature. But i am not sure i can achieve this using grunt or not.

I am deploying my UI application which is made up of AngularJS, Grunt and other UI things.

Whenever i update my UI and redeploy it using grunt (on apache-tomcat), Browser is always getting my resources from cache. (As the path of new resources like css, html are same)

User needs to do CTRL+F5 (Hard reload) to clear cache and use new things.

If somehow i can use angular + grunt to do this task than also it is fine.

I don't want to update the versioning of my files each time i redeploy the product. As my files internally downloading many html files as well.

So somehow i want to clear the browser cache only.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants