简体   繁体   English

Chrome无法缓存HTTP 301重定向

[英]Chrome Not Caching HTTP 301 Redirect

I'm working on dynamic HTTP 301 Redirect responses for an ASP.Net project, and they are cached correctly in Firefox, but no matter what I set the cache headers to, the redirect is never cached by Chrome: 我正在为ASP.Net项目处理动态HTTP 301重定向响应,并且它们已在Firefox中正确缓存,但是无论我将缓存头设置为什么,Chrome都永远不会缓存重定向:

Headers General: 标题

Request URL:https:// domain /old/spot 要求网址:https://网 / old / spot

Request Method:GET 请求方法:GET

Status Code:301 状态码:301

Remote Address:127.0.0.1:443 远程地址:127.0.0.1:443

Referrer Policy:no-referrer-when-downgrade 推荐人政策:降级时无推荐人

Response Headers: 响应标题:

cache-control:private, max-age=3600 快取控制:私人,最大年龄= 3600

content-length:0 内容长度:0

content-type:text/html 内容类型:text / html

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

expires:Fri, 27 Oct 2017 15:03:28 GMT 过期:2017年10月27日星期五15:03:28 GMT

location:/blog1/test 位置:/博客1 /测试

server:Microsoft-IIS/10.0 伺服器:Microsoft-IIS / 10.0

status:301 状态:301

Request Headers: 请求标头:

:authority: domain :authority:

:method:GET :方法:获取

:path:/old/spot :路径:/旧/点

:scheme:https :方案:https

user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 user-agent:Mozilla / 5.0(Windows NT 10.0; Win64; x64)AppleWebKit / 537.36(KHTML,like 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. 使用自签名SSL证书,Chrome会忽略所有缓存指令并重新加载内容。这是Chrome浏览器的已知问题。 It does not cache responses if the HTTPS connection is using an invalid Certificate. 如果HTTPS连接使用无效的证书,则它不缓存响应。 See this bug report for details: https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8 有关详细信息,请参见此错误报告: 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 https://helpx.adobe.com/experience-manager/kb/cache-problems-on-chrome-with-SSL-certificate-errors.html

We're going to work around by testing with a valid certificate and HOST file changes. 我们将通过测试有效的证书和更改HOST文件来解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM