Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I view 301 redirects in chrome developer tools?

If I curl "google.com", I know it issues a 301 redirect to http://www.google.com/. However, I cannot see this anywhere in the networking tab on chrome. I have tried all of the following:

  • Checking preserve log in the network tab
  • Checking disable cache in the network tab
  • Empty cache and hard reloading
  • Going to chrome://net-internals/ and clearing the cache
  • Clearing all cached images and files since the beginning of time in chrome
  • Specifically monitoring "Other" in the network tab

Can anyone please explain why? I am very interested.

like image 714
Leeren Avatar asked Apr 26 '18 03:04

Leeren


People also ask

How do I view all URL redirections in Chrome?

Right-click on the page that is generating the redirect and choose "Inspect Element." Chrome opens a pane at the bottom of the browser window that shows all of the HTML code from the site. Scroll up to "<head>" in the Element Inspector and click the arrow next to it to expand the information.

How do I check 301 redirection?

Simply head to Analytics and follow this path: HTTP Codes, Top Charts, HTTP Status Codes Distribution or Insights, and then click 301 URLs in the pie chart. There are also a variety of other ways you can navigate to your 301s within Analytics and URL Explorer.


1 Answers

Just posting in case anyone else has this issue. Without knowing the details here are two possibilities.

  1. You are clicking a link that opens a new window/tab, in which case your developer tools window is now looking at the wrong thing. Copy/paste the link into the window your dev tools is pointing to.
  2. You are filtering and not including "Other", which is where 300 level messages now appear.
like image 74
Matthew Smith Avatar answered Sep 21 '22 03:09

Matthew Smith