我在这里有一个小问题。这是我的web.config看起来像:ASP.NET中的HTTP 1.1头配置应用程序
<add name="Cache-Control" value="no-cache, no-store, must-revalidate, private" />
<add name="Pragma" value="no-cache" />
但是,当我检查ZAP工具,我有这样的事情:
Cache-Control: no-cache,no-cache, no-store, must-revalidate, private
Pragma: no-cache,no-cache
所以在编译的值复制,还有些反应的cache控制了“公”在像开头:
Cache-Control: public, no-cache, no-cache, no-store, must-revalidate, private
有没有办法从我的web.config仅设置标题?
另一个问题是,有什么方法可以在主响应中设置标题,但在响应是.css和.js文件时禁用它们?我希望他们被缓存。