Chrome不断从缓存中加载页面

时间:2019-05-01 01:30:23

标签: angular google-chrome

出于某种原因,chrome会继续从缓存中加载index.html。在开发人员工具的网络选项卡中,我得到200确认(从磁盘缓存加载)。当我禁用缓存或清除缓存时,它将加载index.html的新副本。但是在其他浏览器(例如Edge)中不会发生此问题。我在做什么错?如何强制Chrome根本不使用缓存,并且总是像在按F5键时一样总是获取新副本?这是我的html。

<head>
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
</head>

1 个答案:

答案 0 :(得分:0)

通过ctrl + shift + I打开开发人员工具栏。

转到应用程序->清除存储。单击清除站点数据(选中所有复选框)。

这是由于service worker

相关问题