angularjs - Angular App clear user browser cache programmatically -
this question has answer here:
- clear cache in javascript 15 answers
is there way, can clear views , scripts cached in user browser after interval (eg: after 2 hrs) don't need clear cache manually. think, it's application may require when there changes made on production user don't see updates until clear browser cache. suggestion, please?
you'll have involve server, @ end of every 1 of scripts/partials/css attach datetime updates every 2 hours (or whatever interval want)
so include angular this:
<script type="text/javascript" src=".../angular.js?12345"></script>
then hour later server change time this:
<script type="text/javascript" src=".../angular.js?12346"></script>
or want it, force user go new data.
Comments
Post a Comment