【发布时间】:2019-12-27 17:55:18
【问题描述】:
我有一个通过 IIS 提供服务的网站。如果我登录系统,则会出现错误 ERR_TOO_MANY_REDIRECTS。这样的错误只会出现在 Chrome 中,而不会出现在 IE 中。我确定错误在缓存中。如何防止 chrome session 缓存?
我尝试禁用客户端缓存,如 web.config 中所示,但这没有帮助。
<httpProtocol>
<customHeaders>
<add name="Cache-Control" value="no-cache, no-store, must-revalidate, pre-check=0, post-check=0, max-age=0, s-maxage=0" />
<add name="Pragma" value="no-cache" />
<add name="Expires" value="0" />
</customHeaders>
</httpProtocol>
【问题讨论】:
-
你想以这种方式为 Redmine 服务吗?
-
是的,我尝试为 Redmine 服务
-
您必须使用反向代理来提供它。哪个版本的 IIS?求反向代理怎么做,适合你的版本。我正在这样做,但在 IIS 8 上,我认为使用 URL 重写模块...
标签: google-chrome caching iis web-config redmine