I am calculating TTFB (Time to First Byte) and other web vitals on a page using the web-vitals
javascript library.
The flow is like this:
- The user, looking at a web page from server A, is clicking a button or other link, resulting in a request that goes to server A.
- Server A analyses the request and returns a redirect, probably 303, with the link to my page, that is on server B.
- The browser is redirected to my page on server B, that is loaded with the content.
In my page on server B, I measure TTFB.
Will the TTFB I measure include the time it took to get the redirect from server A?
CodePudding user response:
Borrowing a graphic from the Navigation Timing spec, TTFB is represented by the stages in the red box above.