0

我在 startup.cs 文件中设置了缓存控制响应标头

   ctx.Response.GetTypedHeaders().CacheControl =
    new CacheControlHeaderValue()
    { NoStore = true,
      NoCache = true,
      MustRevalidate = true };

现在我有2个问题。首先在 chrome 响应标头中始终设置为no-cache. 其次,在 Firefox 中,它设置no-store, must-revalidate, no-cache为第一页(例如 https://localhost:44393/)但是 当我转到另一个页面时它会更改(例如 https://localhost:44393/Account/Login no-cacheno-cache, no-store. 我从浏览器中的网络选项卡检查标题

4

0 回答 0