Hi everyone
How to delete all cache in JavaScript?
Thanks a lot.
Hi everyone
How to delete all cache in JavaScript?
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.
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.