将以下内容添加到可web.config
在Chrome,IE,Firefox和Safari上运行的解决方案中:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="index.html">
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Cache-Control" value="no-cache" />
</customHeaders>
</httpProtocol>
</system.webServer>
</location>
</configuration>
这将确保在请求时将Cache-Control
标头设置为。no-cache``index.html