Chrome记住301重定向多久? [英] How long does Chrome remember a 301 redirect?

查看:221
本文介绍了Chrome记住301重定向多久?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的作者网站,我想从一个我之前使用过Apache重写功能的域中提供,以便将流量反弹到我的亚马逊网站[R = 301,L],我想将它作为我自己的服务器现场。至少我有一个新的域名。

I have a new author site that I want to make available from a domain that I had previously used Apache rewriting to bounce traffic to my Amazon site, [R=301,L], which I want to serve up as my own site. I also have a new domain for the interim at least.

有没有(有)特定的持续时间,特别是Chrome会存储301个缓存重定向?其他一些问题,浏览器缓存HTTP 301s多久?和<一个href =https://stackoverflow.com/questions/4454787/how-is-301-redirect-implemented-by-different-browsers> 301不同浏览器实现301重定向?,问,答案是某些浏览器不会缓存,缓存会话,Chrome和IE10缓存的方式可以在浏览器重新启动后保存,但不要指定多长时间。比其他浏览器测试的时间长,但金额仍未明确。

Is there (are there) particular durations of times when Chrome in particular will store 301 cached redirects? Some other questions, How long do browsers cache HTTP 301s? and How is 301 redirect implemented by different browsers? , ask, and the answer is given that some browsers do not cache, some cache for the session, and Chrome and IE10 cache in a way that will survive a browser restart, but don't specify how long. Longer than the other browsers tested, but the amount is still unspecified.

因此,Chrome存储301重定向的时间有多长?所引用的问题没有说明Chrome或IE10是什么。

So how long does Chrome store a 301 redirect? The questions cited do not specify what it is for Chrome or IE10.

推荐答案

我通过打开开发工具(F12)解决了这个问题,点击保留日志复选框,并发出导致缓存的请求301.右键单击导致301的请求,然后单击清除浏览器缓存。再试一次,然后301应该不再被缓存。

I resolved this by opening dev tools (F12), click the "Preserve log" checkbox, and make the request that results in the cached 301. Right-click the request that results in the 301 and click "clear browser cache". Try again and then 301 should no-longer be cached.

这篇关于Chrome记住301重定向多久?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆