【发布时间】:2019-01-14 07:50:48
【问题描述】:
我不想为我的项目中的所有 html 文件设置缓存头。我知道如何为特定文件执行此操作:
<location path="index.html">
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Cache-Control" value="no-cache, no-store, must-revalidate" />
<add name="Pragma" value="no-cache" />
<add name="Expires" value="0" />
</customHeaders>
</httpProtocol>
</system.webServer>
</location>
但是我怎样才能像通配符一样使用它来定位所有 html 文件呢?
【问题讨论】:
标签: iis http-headers web-config