开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜