【发布时间】:2020-07-31 20:07:43
【问题描述】:
我的浏览器出现问题(笔记本电脑上的 Chrome 和智能手机上的 Chrome)。 我正在开发一个网站页面(HTML、javascript),我注意到我的浏览器总是检索缓存的信息而不每次都加载页面,所以我看不到我在代码中所做的更改。
为了查看更改,我总是必须清除 Web 数据并清除浏览器缓存。 我已经检查了两个浏览器的设置,但一切似乎都正常。
我添加了这些行,但问题仍然存在。
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="HandheldFriendly" content="True">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<meta http-equiv="cache-control" content="no-cache, must-revalidate, post-check=0, pre-check=0" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
【问题讨论】:
-
内容是指静态文件(JS、CSS、...)?还是 HTML?
-
JS 和 HTML
标签: javascript jquery html caching browser