-1
在IE浏览器中始终加载浏览器历史记录中的旧数据。为了获取最新数据,我需要始终清除浏览器历史记录。在IE浏览器中始终加载浏览器中的旧数据
如何总是加载新的数据? 有没有办法使用javascript清除浏览记录?
这似乎是因为
我试图像
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='-1'>
<meta http-equiv='pragma' content='no-cache'>
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1. response.setHeader("Pragma", "no-cache"); // HTTP 1.0. response.setDateHeader("Expires", 0); // Proxies.
var numberOfEntries = window.history.length;
window.history.go(-numberOfEntries);
var cookies = document.cookie.split(";");
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];
var eqPos = cookie.indexOf("=");
var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
}
window.history.replaceState();
window.location.replace(document.url);
没有几种方法Internet临时文件和网页文件似乎是工作
代码你是如何做的? (特别是缓存标题) – 2014-11-01 09:34:06