4 ms·
The times will be super different between initial load and retries, since the first request requires a potential DNS lookup, establishing a TCP connection, and
by Matthias247 4y ago
The times will be super different between initial load and retries, since the first request requires a potential DNS lookup, establishing a TCP connection, and potential TLS handshake, and only then the request can be performed. Follow-up requests don't require an additional connection.
If you want timings only for TCP connection establishment, or only for the request, you can use the browsers navigation timing APIs to get those: https://developer.mozilla.org/en-US/docs/Web/Performance/Navigation_and_resource_timings https://developer.mozilla.org/en-US/docs/Web/Performance/Nav...
- KMnO4 4y agoWon’t the browser first do an OPTION before the test (GET) starts? The lookups should be cached.
- Matthias247 4y agoyou can check it in the network tab. It won't.