我在這裏有一個小問題。這是我的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文件時禁用它們?我希望他們被緩存。