angularjs - Angular App clear user browser cache programmatically‏ -


this question has answer here:

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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -