When I go to
www.espn.com, I am redirected to
espn.go.com. It is a 302 redirect. But when I check RedirectChain, I do not see
www.espn.com in redirectChain. After digging into the code, I found the redirectChain had been cleared by the clearRedirectChain() function, which is called by DocumentLoader::updateForSameDocumentNavigation(). However, the same does not happen when I visit
box.com, which is redirected to
www.box.com. This is a 302 redirect. Looks like in the
box.com case, DocumentLoader::updateForSameDocumentNavigation() is not called at all. So two questions:
1. Is RedirectChain reset for 302 redirects only?
2. When will DocumentLoader::updateForSameDocumentNavigation() be called?
Thanks
Debin