How do I clear a browsers cache with JavaScript?(如何使用JavaScript清除浏览器缓存?)
We deployed the latest JavaScript code but we are unable to get the latest JavaScript code.(我们部署了最新的JavaScript代码,但无法获取最新的JavaScript代码。) Editorial Note: This question is semi-duplicated in the following places, and the answer in the first of the following questions is probably the best.(编者注:该问题在以下地方被半复制,以下第一个问题的答案可能是最好的。) This accepted answer is no longer the ideal solution.(这个公认的答案不再是理想的解决方案。) How to force browser to reload cached CSS/JS files?(如何强制浏览器重新加载缓存的CSS / JS文件?) How can I force clients to refresh JavaScript files?(如何强制客户端刷新JavaScript文件?) Dynamically reload local Javascript source / json data(动态重新加载本地Javascript源/ json数据) ask by translate from so