How to clear browser cache when launching updated version of application using grunt?
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
Research direction
The issue does not name any Grunt files, tests, or repository entry points. First determine whether this repository can address browser cache behavior during AngularJS deployment; the issue is complete only when a concrete, supported approach and its scope are defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, apache, javascript
- Domain
- build-system, frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100