Hacker News new | ask | show | jobs
by Matthias247 1363 days 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/Nav...

1 comments

Won’t the browser first do an OPTION before the test (GET) starts? The lookups should be cached.
you can check it in the network tab. It won't.