Chrome 不缓存 HTTP 301 重定向

Chrome Not Caching HTTP 301 Redirect

我正在为一个 ASP.Net 项目处理动态 HTTP 301 重定向响应,并且它们在 Firefox 中正确缓存,但无论我将缓存 headers 设置为什么,重定向都是从未被 Chrome:

缓存

Headers 一般:

请求URL:https:///old/spot

请求Method:GET

状态Code:301

远程Address:127.0.0.1:443

推荐人 Policy:no-referrer-when-downgrade

回复Headers:

cache-control:私有,max-age=3600

content-length:0

content-type:text/html

日期:2017 年 10 月 27 日,星期五 14:03:28 GMT

到期时间:2017 年 10 月 27 日,星期五 15:03:28 GMT

位置:/blog1/test

服务器:Microsoft-IIS/10.0

状态:301

请求Headers:

:权限:

:方法:GET

:路径:/old/spot

:方案:https

user-agent:Mozilla/5.0(Windows NT 10.0;Win64;x64)AppleWebKit/537.36(KHTML,如 Gecko)Chrome/61。 0.3163.100 Safari/537.36

With self-signed SSL certificates, Chrome ignores all caching directives and reloads the content ... This is a known issue with Chrome browser. It does not cache responses if the HTTPS connection is using an invalid Certificate. See this bug report for details: https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8

https://helpx.adobe.com/experience-manager/kb/cache-problems-on-chrome-with-SSL-certificate-errors.html

我们将通过使用有效证书和主机文件更改进行测试来解决问题。