Often, when a script has a redirect loop we get an error in Google Chrome that says
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
How many redirects are too many?
Often, when a script has a redirect loop we get an error in Google Chrome that says
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
How many redirects are too many?
Google Chrome 17.0.963.56 allows a maximum of 20 redirects, as tested with this PHP script:
<?php
$redirect = (isset($_GET['redirect'])) ? $_GET['redirect'] : 0;
header("Location: redirects.php?redirect=" . ($redirect + 1));
?>
Chrome aborts with error 310 when trying to open redirects.php?redirect=21, which means that the first 20 redirects were successful.
Tested on Win 7 64bit
Version: 49 ↷ 105.0.5195.127 (Official Build), (19*X) redirectsVersion: 49 ↷ 108.0.5337.0 (Official Build), (19*X) redirects3 retries sum up to 57 redirectsversion: 43 ↷ 105.0.1, 20 redirectsversion: 43 ↷ 105.0.1, 20 redirects67.0.4, endless loop! version: 28, ↷ 90.0.4480.84 (19*3) redirectsversion: 5.1.7, 16 redirectsversion: 8 11 redirects via webpagetest.orgversion: 9 121 redirects via webpagetest.orgversion: 10 121 redirects via webpagetest.orgversion: 11.48.17134.0 110 redirectsversion: 42.17134.1.0 20 redirectsversion: 105.0.1343.53 (19 * X)
redirects5 retries sum up to 95 redirectsChrome and Firefox out of the box is 20, Internet Explorer is 10, I couldn't tell you on Opera or Safari