Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How long does Chrome remember a 301 redirect?

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.

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.

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

like image 211
Christos Hayward Avatar asked Apr 22 '13 19:04

Christos Hayward


People also ask

How long does 301 redirect last?

A 301 redirect signals to Google that a page has been moved permanently, while a 302 redirect signals a temporary page move. A site move is a permanent change, so 301 is the appropriate redirect to use in this case.

Does Chrome cache 301 redirects?

The 301 is a permanent redirection. Even if you remove the redirection from the server, your browser continuously redirects the resources to the new domain or HTTPS, because of the hard cache.

Is a 301 redirect permanent?

A 301 redirect is a permanent redirect that passes full link equity (ranking power) to the redirected page. 301 refers to the HTTP status code for this type of redirect. In most instances, the 301 redirect is the best method for implementing redirects on a website.


2 Answers

I resolved this by opening dev tools (F12), click "Network", then 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.

like image 78
Sam Rueby Avatar answered Sep 29 '22 13:09

Sam Rueby


Go to chrome://net-internals and at the far right open the drop-down and choose "Clear Cache". As of version 48, this was the only thing that worked for me to clear a cached 301.

Update: Unfortunately, as of version 71 (Dec 2018) Google has removed the net-internals feature.

like image 30
McGuireV10 Avatar answered Sep 29 '22 12:09

McGuireV10