Delete browsers cache in javascript
How to delete all cache in JavaScript?
开发者_JAVA技巧Thanks a lot.
You can't.
If you don't want browsers to cache things from your site, tell them not to do that with the proper HTTP headers.
Sorry, it's up to the user to delete his or her own cache. You can't do it from Javascript.
See:
So, You Don't Want To Cache, Huh?
You can't delete it but one idea to make sure that new images/javascript are picked up during (perhaps) a new server side release is to name your javascript and image files with the date/version of the release encoded as a number. You can automate this so that the thing works fine every time you release.
精彩评论