【发布时间】:2016-08-05 02:47:42
【问题描述】:
我有一个需要不断刷新的状态页面。它对 Java 服务器进行 ajax 调用并获取更新的状态。它在 Chrome 中完美运行,但在 IE11 中,当我单击刷新时它不会刷新。但是,当我打开开发工具时,它确实有效。一旦我关闭开发工具,它就会停止工作。我脑子里有以下元标记:
<meta http-equiv="cache-control" content="no-cache, must-revalidate, post-check=0, pre-check=0">
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no-cache">
将我自己的浏览器设置为不使用缓存是不够的;我需要它为用户工作,而无需他们更改浏览器设置。
【问题讨论】:
标签: html ajax internet-explorer internet-explorer-11