【发布时间】:2017-11-02 11:03:07
【问题描述】:
我正在开发一个 Web 应用程序、带有 ASP.NET 的服务器和 AngularJS 中的前端,每次我在 Azure 应用服务(IIS 即服务)上部署新版本时,我都会遇到缓存问题 -在我打开 chrome 开发人员工具中的禁用缓存复选框或按 Ctrl+Shift+R
之前,视图不会更新到新版本我尝试在 index.html 中添加这个元标记
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"/>
<meta http-equiv="cache-control" content="no-cache" />
<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" />
但它不起作用。 我尝试了很多在网络上找到的想法,但问题没有解决
【问题讨论】:
-
是 html 还是 javascript 缓存?
标签: asp.net google-chrome caching