---
title: "Time to First Byte (TTFB)"
description: "The wait from starting to load a page until the first byte of the reply arrives. web.dev says good is 0.8 seconds or less."
url: https://ursy.com/wiki/time-to-first-byte/
updated: 2026-11-26T15:48:12+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/time-to-first-byte/
---

# Time to First Byte (TTFB)

> The wait from starting to load a page until the first byte of the reply arrives. web.dev says good is 0.8 seconds or less.

**Time to First Byte (TTFB) is the wait from starting to load a page until the first byte of the server’s reply arrives.** web.dev says most sites should aim for 0.8 seconds or less; over 1.8 seconds is poor. Nothing can appear on screen before that first byte, so a slow TTFB delays everything after it.

## What is TTFB? {#what-is-ttfb}

[web.dev](https://web.dev/articles/ttfb) defines TTFB as “the time between starting navigating to a page and when the first byte of a response begins to arrive”. It is not only the server’s thinking time. It is the sum of five steps:

1. Redirect time (each [redirect](https://ursy.com/wiki/redirect/) before the page).
2. Service worker start-up time, if the site has one.
3. The [DNS](https://ursy.com/wiki/dns/) look-up.
4. The connection and TLS set-up (the secure part of [HTTPS](https://ursy.com/wiki/http/), which uses your [SSL certificate](https://ursy.com/wiki/ssl-certificate/)).
5. The request, up to the first byte of the response.

## What are the thresholds? {#what-are-the-thresholds}

| TTFB | web.dev rating |
| --- | --- |
| 0.8 seconds or less | Good |
| Over 0.8 to 1.8 seconds | Needs improvement |
| Over 1.8 seconds | Poor |

[PageSpeed Insights](https://developers.google.com/speed/docs/insights/v5/about) uses the same bands and marks TTFB as “experimental” in its real-user data.

## Is TTFB a Core Web Vital? {#is-ttfb-a-core-web-vital}

No. web.dev notes that TTFB is not one of the [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/), so it is a guide rather than a pass mark. It matters because it comes first. TTFB is the first of the four parts of [Largest Contentful Paint](https://ursy.com/wiki/largest-contentful-paint/), and web.dev’s rough guide gives it about 40% of the LCP time. web.dev picked 0.8 seconds so that most visits can still reach a good first paint.

## Why does it matter for search? {#why-does-it-matter-for-search}

A slow server limits how much [Google](https://ursy.com/wiki/google/) reads. Google’s [crawl budget guide](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget) says that if a site’s response times become longer, “the limit goes down and Google crawls less”. Server errors (5xx) and rate-limit replies (429) lower it too. On a small site this rarely matters. On a large shop with thousands of pages, new products can wait longer to be found. See [crawl budget](https://ursy.com/wiki/crawl-budget/) and [HTTP status codes](https://ursy.com/wiki/http-status-code/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

Some AI visits happen while a person waits. OpenAI says [ChatGPT-User](https://ursy.com/wiki/chatgpt-user/) visits pages when someone asks [ChatGPT](https://ursy.com/wiki/chatgpt/) a question ([OpenAI crawlers page](https://developers.openai.com/api/docs/bots)). Anthropic says the same of Claude-User. These are [live fetchers](https://ursy.com/wiki/live-fetcher/): your server is answering in the middle of someone’s conversation. A quick, cached reply is the polite answer to a [search crawler](https://ursy.com/wiki/search-crawler/), an [AI crawler](https://ursy.com/wiki/ai-crawler/) and a person alike.

## Server rendering or browser rendering? {#server-rendering-or-browser-rendering}

web.dev says the thresholds are a rough guide, to weigh against how a site builds its pages. A page built in the browser by JavaScript needs a very low TTFB, because the real work only starts after the first byte. A page built on the server “could have a higher TTFB” and still show its content sooner. So do not chase TTFB alone. Look at it next to LCP. See [JavaScript SEO](https://ursy.com/wiki/javascript-seo/).

## A worked example: adding it up {#a-worked-example-adding-it-up}

web.dev lists the parts that make up TTFB: redirect time, service worker start-up time if there is one, DNS look-up, connection and TLS negotiation, and the request up to the first byte of the response. A bike shop’s product page, opened from an old `http://` link, might add up like this:

| Step | Time |
| --- | --- |
| Redirect from http to https | 150 ms |
| DNS look-up | 40 ms |
| Connection and TLS | 110 ms |
| Server builds the page and starts sending | 700 ms |
| **TTFB** | **1,000 ms (needs improvement)** |

Two fixes change the sum. Updating the old links to `https://` removes the 150 ms redirect. Serving the page from a cache, so the server does not rebuild it for every visitor, can cut the 700 ms server step to a fraction. Together they bring this page under 0.8 seconds. These figures are an illustration; measure your own pages, because the server step varies most.

## How do you make TTFB faster? {#how-do-you-make-ttfb-faster}

[web.dev’s guide to optimising TTFB](https://web.dev/articles/optimize-ttfb) lists these steps, roughly in this order:

- **A server that copes.**  Enough memory, and an up-to-date software stack.
- **A [CDN](https://ursy.com/wiki/cdn/).**  web.dev says CDNs “solve the problem of user [proximity](https://ursy.com/wiki/proximity-local-ranking-factor/) from your origin server”. If you do not use one, it calls adopting one a high priority.
- **[Caching](https://ursy.com/wiki/caching/).**  Set `Cache-Control` headers. Even a short cache time helps a busy page: only the first visitor in that time waits for the [origin server](https://ursy.com/wiki/origin-server/). See [edge cache](https://ursy.com/wiki/edge-cache/) and [cache purge](https://ursy.com/wiki/cache-purge/).
- **Fewer redirects.**  Fix same-origin ones first, such as a missing `https://` or a stray [trailing slash](https://ursy.com/wiki/trailing-slash/). Give newsletters and advertisers the final address, not a shortener.
- **HSTS.**  The `Strict-Transport-Security` header tells browsers to use HTTPS next time, so the http-to-https redirect is skipped.
- **Streaming.**  Send the top of the page as soon as it is ready, rather than waiting for the whole page.

## Common mistakes {#common-mistakes}

- **Testing only a cached page.**  web.dev warns that caching can hide a slow back end. Test with a way to skip the cache, too.
- **Unique query strings.**  web.dev notes that unique query strings can cause cache misses. Tracking tags on every link can send every visit back to the origin. See [URL parameters](https://ursy.com/wiki/url-parameter/) and [UTM parameters](https://ursy.com/wiki/utm-parameters/).
- **Redirect chains.**  Old links that hop twice or three times before the page. See [redirect chain](https://ursy.com/wiki/redirect-chain/) and [301 vs 302](https://ursy.com/wiki/301-vs-302-redirect/).
- **Trusting a lab tool alone.**  web.dev says lab tools often test the final address and miss the redirect delay real visitors feel.
- **Reading 103 Early Hints as a fast server.**  web.dev says a 103 reply “counts as the ‘first bytes'”. It can hide a slow server, so measure the real server time too.
- **Ignoring [bots](https://ursy.com/wiki/bot-web-robot/).**  Heavy [crawling](https://ursy.com/wiki/crawling/) can eat server time that people need. See [rate limiting](https://ursy.com/wiki/rate-limiting/) and [bot traffic in analytics](https://ursy.com/wiki/bot-traffic-in-analytics/).

## How do you measure it? {#how-do-you-measure-it}

web.dev names two field sources: the Chrome [User Experience](https://ursy.com/wiki/user-experience-ux/) Report (CrUX) and the `web-vitals` JavaScript library. For the lab it names the Chrome DevTools Network panel and WebPageTest. To measure real visitors yourself, web.dev shows this snippet:

```
import {onTTFB} from 'web-vitals';
onTTFB(console.log);
```

To see where the server’s own time goes, web.dev suggests the `Server-Timing` header. Its example:

```
Server-Timing: db;desc="Database";dur=121.3, ssr;desc="Server-side Rendering";dur=212.2
```

It shows up in Chrome DevTools. [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Server-Timing) warns that it may expose sensitive details about your set-up, so choose who sees it.

## How to check it {#how-to-check-it}

1. Open Chrome DevTools, go to the Network panel, reload and click the first request. The Timing tab shows the wait for the server.
2. For real visitors’ figures, look at Chrome User Experience Report (CrUX) data, for example in PageSpeed Insights. Our Page Speed Checker is [coming soon](https://ursy.com/page-speed-checker/). Our Core Web Vitals Checker (real users) is [coming soon](https://ursy.com/core-web-vitals-checker/) too.
3. Test the page more than once. The first visit may miss the cache; later ones show what most visitors get.
4. Count the hops before the page with our [redirect checker](https://ursy.com/redirect-checker/). Each redirect adds to TTFB.
5. Look at cache headers with our [HTTP header checker](https://ursy.com/http-header-checker/) to see whether the page came from a cache, and which status code it sent. Our [Edge Cache Checker](https://ursy.com/cache-checker/) shows whether a page came from the cache.
6. Check for an HSTS header with our [Security Headers Checker](https://ursy.com/security-headers-checker/); the HTTP header checker shows all headers. Our [SSL Certificate Checker](https://ursy.com/ssl-checker/) checks the certificate.
7. In [Google Search Console](https://ursy.com/wiki/google-search-console/), open Settings, then [Crawl stats](https://support.google.com/webmasters/answer/9679690). It shows [Googlebot](https://ursy.com/wiki/googlebot/)’s average response time and host problems with DNS, connections and [robots.txt](https://ursy.com/wiki/robots-txt/).
8. Make sure robots.txt answers quickly and cleanly. Google says that if it cannot fetch robots.txt because of a server error, it stops crawling for the first 12 hours ([Google’s robots.txt rules](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt)). Test it with the [robots.txt checker](https://ursy.com/robots-txt-checker/).
9. Read your [server logs](https://ursy.com/wiki/server-logs/) to see which bots [hit](https://ursy.com/wiki/hit-analytics/) hardest. If a “Googlebot” is slowing you down, confirm it is real with [Verify an AI Bot](https://ursy.com/verify-ai-bot/) and read [reverse DNS bot check](https://ursy.com/wiki/reverse-dns-bot-check/).
10. Compare your reply speed and headers with a rival on [Compare Two Websites](https://ursy.com/compare-websites/).
11. Over time, the [edge cache report](https://ursy.com/pro/edge-cache-report/), [bot cost](https://ursy.com/pro/bot-cost/), [crawl budget by bot](https://ursy.com/pro/crawl-budget-by-bot/) and the [page speed monitor](https://ursy.com/pro/page-speed-monitor/) are in URSY Pro, opening in stages.

## What URSY.com counts {#what-ursy-counts}

We read two places: the edge log, which lists every request the CDN answered, cached or not, and the origin, which sees only requests that reached the website. A request seen in both has the same request ID and is counted once. That shows what share of requests, and of each bot’s requests, the cache answered. The edge log arrives about 8 to 10 minutes late, so the last hour is incomplete. The full rules are on our [methodology](https://ursy.com/methodology/) page.

## Questions {#questions}

### What is a good TTFB? {#what-is-a-good-ttfb}

web.dev says 0.8 seconds or less at the 75th percentile is a good rough target. Over 1.8 seconds is poor.

### Why is my TTFB fast in one test and slow in the next? {#why-is-my-ttfb-fast-in-one-test-and-slow-in-the-next}

Usually the cache. A cached copy comes back quickly; a miss means the server builds the page again. Distance and the network matter too.

### Does TTFB affect rankings? {#does-ttfb-affect-rankings}

It is not a Core Web Vital. It feeds LCP, which is, and a slow server can lower how much Google crawls.

### Will AI crawlers slow my site? {#will-ai-crawlers-slow-my-site}

They can add load. Read our guide [Will AI crawlers slow my website?](https://ursy.com/guides/will-ai-crawlers-slow-my-website/) and [why your website is slow](https://ursy.com/wiki/why-your-website-is-slow/).

## Related words {#related-words}

- [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/)
- [Edge cache](https://ursy.com/wiki/edge-cache/)
- [Why your website is slow: the usual causes and fixes](https://ursy.com/wiki/why-your-website-is-slow/)
- [Largest Contentful Paint](https://ursy.com/wiki/largest-contentful-paint/)
- [CDN](https://ursy.com/wiki/cdn/)
- [Origin server](https://ursy.com/wiki/origin-server/)
- [Redirect chain](https://ursy.com/wiki/redirect-chain/)
- [Page speed](https://ursy.com/wiki/page-speed/)
- [Crawl budget](https://ursy.com/wiki/crawl-budget/)

## Sources {#sources}

- [web.dev: Time to First Byte (TTFB) (last updated 18 November 2025)](https://web.dev/articles/ttfb), checked 24 November 2026
- [web.dev: Optimize Time to First Byte (last updated 28 November 2025)](https://web.dev/articles/optimize-ttfb), checked 24 November 2026
- [PageSpeed Insights: About PageSpeed Insights](https://developers.google.com/speed/docs/insights/v5/about), checked 24 November 2026
- [Google Search Central: Crawl budget management for large sites](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget), checked 24 November 2026
- [Search Console Help: Crawl Stats report](https://support.google.com/webmasters/answer/9679690), checked 24 November 2026
- [Google Search Central: How Google interprets the robots.txt specification](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt), checked 24 November 2026
- [OpenAI: Overview of OpenAI crawlers](https://developers.openai.com/api/docs/bots), checked 24 November 2026
- [Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler), checked 24 November 2026
- [MDN: Server-Timing header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Server-Timing), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
