I'm using the NavigationTiming
object to monitor performance of my website.
According to the W3C document on the redirectStart
property of the NavigationTiming
object:
If there are HTTP redirects or equivalent when navigating and if all the redirects or equivalent are from the same origin, this attribute must return the starting time of the fetch that initiates the redirect.
My site currently has a login page, which submits POST and receives a 302 redirect to a welcome page. I expected the NavigationTiming
object on the welcome page to include the redirectStart
and redirectEnd
properties to be populated, but they are 0.
When should they be populated, if not then?