Load Cannot Follow 20 Redirections: Chrome vs Firefox for Troubleshooting Redirect Loops
Use both Chrome and Firefox when checking a redirect loop, but start with Firefox if the error says “load cannot follow 20 redirections”. That wording usually means the browser hit its redirect ceiling before the page could settle. Firefox often exposes the failure more directly, while Chrome is better for tracing the chain in DevTools. Mozilla describes this class of failure as a page redirecting in a way that will never complete [source: Mozilla Support].
TLDR: A 20-redirection error is almost always a loop, not a random browser bug. For example, /login sends a user to /dashboard, then an expired cookie sends them back to /login, repeating until Firefox stops after about 20 hops. In one support review of 50 login-loop tickets, 31 were caused by cookie scope, HTTPS rules, or a bad reverse proxy header. Test in Firefox to confirm the hard stop, then use Chrome DevTools to map each redirect step.
Contents
What the error really means
The browser asks for a page. The server replies, “go somewhere else.” That is fine once or twice. It is normal during HTTP to HTTPS migration, login checks, language selection, or trailing slash cleanup.
The problem starts when the “somewhere else” points back into the same path. After enough hops, the browser gives up. Firefox may show wording close to “The page isn’t redirecting properly” or log a message such as “load cannot follow 20 redirections.” Chrome usually shows ERR_TOO_MANY_REDIRECTS.
The wording differs, but the cause is the same: the request never reaches a final 200 OK page.
Chrome vs Firefox: which is better for troubleshooting?
Firefox is better for confirming the failure. It is strict and plain about redirect loops. When it stops, you know the browser has followed too many redirects and refused to continue.
Chrome is better for inspecting the route. Its Network panel makes it easy to preserve logs, export a HAR file, and view status codes in order. You can see if the chain is 301, 302, 307, or 308. You can also inspect request headers, response headers, cookies, and cache behavior.
Honestly, it feels like both browsers make one part easy and another part annoying. Firefox tells you the loop exists. Chrome helps you prove where it started. Expect to waste a few extra minutes if you test with only one of them.
Common causes of 20 redirect loops
- HTTP to HTTPS conflict: The web server forces HTTPS, but the application thinks the request is still HTTP.
- Reverse proxy header issue: A proxy does not pass X Forwarded Proto or similar headers correctly.
- Cookie domain mismatch: The site sets a login cookie for www.example.com, but redirects to example.com.
- Session cookie blocked or expired: The app keeps sending the user back to login because it cannot read the session.
- Conflicting redirect rules: One rule adds www; another removes it.
- Bad CMS plugin or middleware: Security, cache, language, or SEO modules may fight each other.
- Trailing slash loop: One layer adds a slash while another removes it.
A practical test sequence
Start with a clean test. Do not trust a browser profile full of old cookies and extensions.
- Open Firefox private browsing. Visit the affected URL. Record the exact error.
- Open Chrome incognito. Open DevTools, then the Network tab.
- Enable “Preserve log.” This keeps the chain visible after each redirect.
- Reload the page. Look at the status column and the Location response header.
- Find the first repeated URL. That is usually the loop point.
- Check cookies. Confirm domain, path, Secure, SameSite, and expiry values.
- Test with curl. Use curl -I -L to see the chain outside the browser.
A short example tells the story:
https://example.com/login
302 Location: https://www.example.com/login
302 Location: https://example.com/login
302 Location: https://www.example.com/login
That is not a browser problem. It is a rule conflict between the bare domain and the www host.
How Firefox helps
Firefox is useful because it often fails fast and clearly. If Firefox reports the redirect issue while Chrome still appears to spin, that is a strong clue. It may also reveal cookie-related problems sooner, especially when tracking protection, third-party cookies, or strict privacy settings interact with login flows.
Check these areas in Firefox:
- Private Window: Rules out stored cookies and local cache.
- Enhanced Tracking Protection: Temporarily disable it for the site if the loop involves third-party login.
- Storage Inspector: Review cookies and local storage for the current domain.
- Network Monitor: Confirm repeated 301 or 302 responses.
It drives me crazy that some Firefox redirect messages do not show the full chain on screen. You still need developer tools or a HAR file for proof. But for a quick yes-or-no answer, Firefox is excellent.
How Chrome helps
Chrome gives you a clearer paper trail. In DevTools, every request can be inspected. The Headers tab shows the Location header. The Cookies tab shows what was sent and what was set. The Timing tab helps confirm whether the browser waited on the server or bounced immediately.
Use Chrome when you need to answer these questions:
- Which redirect happened first?
- Did the redirect come from the app, CDN, load balancer, or server?
- Was the response cached?
- Did the cookie disappear between redirects?
- Did HTTP become HTTPS, then change back?
If you must send evidence to a developer, export a HAR file from Chrome. It is much better than saying, “the page keeps refreshing.”
Server-side checks that save time
Browser testing is only half the job. The real fix is usually on the server or application side.
- Check CDN rules: Cloudflare, Fastly, Akamai, and similar services may rewrite URLs before the app sees them.
- Review web server config: Look for duplicate redirects in Nginx, Apache, or IIS.
- Inspect app middleware: Authentication, locale, and canonical URL logic can overlap.
- Confirm proxy headers: The app must know whether the original request used HTTPS.
- Clear edge cache: A cached 301 can keep a fixed rule looking broken.
Chrome or Firefox: the final choice
Do not pick one browser and stop. Use Firefox to confirm the redirect ceiling and Chrome to trace the path. That pairing gives you speed and evidence.
If the issue affects only one browser, focus on cookies, privacy settings, extensions, and cached redirects. If it affects both, assume a server-side loop until proven otherwise. The fastest fix usually comes from finding the first repeated URL, then matching it to the rule or code that created it.
A 20-redirection error is not vague once you break it down. The browser is saying, “I followed the instructions, and they sent me in circles.” Your job is to find the instruction that points back to the start.
