增加 index不缓存,解决更新后客户端缓存导致页面一直白屏

This commit is contained in:
chenshaowei 2026-04-09 14:38:25 +08:00
parent 733342c0d4
commit b401e5a937

12
public/web.config Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="index.html">
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Cache-Control" value="no-cache, no-store, must-revalidate" />
</customHeaders>
</httpProtocol>
</system.webServer>
</location>
</configuration>