clientCache cachecontrolmode="UseMaxAge"returns可笑max-age个数
clientCache cachecontrolmode="UseMaxAge" returns ridiculous max-age number
我正在尝试将 clientCache 与 cacheControlMode = UseMaxAge 一起使用,就像我的 web.config:
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="0.00:05:00" cacheControlCustom="public" setEtag="false" />
然而,在我们的一台生产服务器中,响应 Header 总是 returns 像这样:
HTTP/1.1 200 OK
Cache-Control: public, max-age=63610542360
max-age 应该是 300。在其他服务器上,我们可以正常使用相同的应用程序文件并部署 web.config。
有人遇到同样的问题吗?
原来服务器安装了 .Net Framework 4.6。它工作的服务器安装了 .Net Framework 4.5。我刚刚降级到 .Net Framework 4.5 并且 max-age 现在可以使用了。
不知道是不是4.6版本的bug
我正在尝试将 clientCache 与 cacheControlMode = UseMaxAge 一起使用,就像我的 web.config:
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="0.00:05:00" cacheControlCustom="public" setEtag="false" />
然而,在我们的一台生产服务器中,响应 Header 总是 returns 像这样:
HTTP/1.1 200 OK
Cache-Control: public, max-age=63610542360
max-age 应该是 300。在其他服务器上,我们可以正常使用相同的应用程序文件并部署 web.config。
有人遇到同样的问题吗?
原来服务器安装了 .Net Framework 4.6。它工作的服务器安装了 .Net Framework 4.5。我刚刚降级到 .Net Framework 4.5 并且 max-age 现在可以使用了。 不知道是不是4.6版本的bug