Time to first byte, or TTFB, measures the wait before the browser starts receiving a response. When you load a page, a long TTFB delays the arrival of the HTML. That can hold up the browser’s discovery of the stylesheets, scripts, and images it needs to display the page.
Your web host can contribute to that wait. So can a redirect, the network, or an application that spends a long time retrieving data. To find out whether the origin server is part of the problem, compare where the delay occurs on requests the origin handles and requests a cache can serve.
What Does Time to First Byte Include?
The TTFB for a page navigation can include redirects, DNS lookup, and the time to establish a connection and negotiate HTTPS. Some of those steps take little or no time on a repeat visit because the browser can reuse information or an existing connection. Once the request goes out, the browser still waits for it to reach the server, for the server to prepare a response, and for the first bytes to make the trip back.
Check what your tool measures. Chrome DevTools shows DNS and connection setup on separate lines in the Timing tab of an individual request. Its Waiting (TTFB) phase covers the time between sending the request and receiving the start of the response. A timing report that starts at the beginning of the page navigation can include more of the trip. Compare readings from the same tool and the same timing field.
TTFB ends as the response begins. If the browser gets the HTML promptly and then spends seconds downloading images or executing scripts, the page can still feel slow. In that case, look at what happens after the first byte as well.
Check the Request That Starts the Page
Open the Network panel in your browser’s developer tools and load the page. Select the main document request, then open its Timing tab. If the URL redirects, check the redirect requests in the network log as well. A slow image request can have a high TTFB of its own, but it measures the response for that image.
Repeat the same check for the same URL and browser state. For a public page behind a content delivery network, or CDN, look for the provider’s cache-status header to see whether its edge server served a cached response. For example, Cloudflare reports HIT when it serves the response from cache and MISS when it has to fetch an eligible response from the origin. Use tests from a second location if the problem mainly affects users in a particular market. Disabling the browser cache in developer tools can make the request reach the network. The CDN still applies its own cache rules.
How Can You Tell Whether the Origin Is Slow?
Start with the timing pattern. If most of the delay is in DNS, connection setup, or a redirect chain, investigate that part of the path first. If the connection opens quickly and the wait stays high for requests that reach the origin, look more closely at what happens there. Cached responses can provide a comparison, especially when you can test the same page, but the timing difference alone can include both the trip from the edge to the origin and the time the origin spends preparing the page.
Suppose the first byte for a product page arrives in 120 ms when its HTML is cached at the edge and in 900 ms when the edge fetches it from the origin. To explain a gap like that, check the origin’s own request logs or application timings. If they show that the application spent 650 ms on database calls, you have something specific to investigate. If the origin completed the request quickly, look at the route between the edge and the origin or at a proxy layer ahead of the application.
Some applications send a Server-Timing header with timings such as database or application time. If you have those measurements, remember they describe the work the application or provider chose to record. If you can only see browser timings, give support an affected URL, the time and time zone of the request, your test location, and any cache status or request ID you can see. Ask whether the origin logged a slow request or a queue at that time.
What Should You Fix First?
Follow the part of the timing that grew. Redirect chains, slow connections for one audience, and consistently slow database work call for different fixes. If requests spend time waiting while the account hits a resource cap, look at the site’s usage during that busy period. If a specific page stays slow while capacity is available, look at the code, queries, or external services that prepare it before you pay for a larger plan.
After a change, compare the same requests from the same test locations. A lower TTFB for the requests users depend on shows that the response starts sooner. Follow that with a check of the complete page or interaction to see whether the improvement carries through.