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? #
web.dev 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:
- Redirect time (each redirect before the page).
- Service worker start-up time, if the site has one.
- The DNS look-up.
- The connection and TLS set-up (the secure part of HTTPS, which uses your SSL certificate).
- The request, up to the first byte of the response.
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 uses the same bands and marks TTFB as “experimental” in its real-user data.
Is TTFB a Core Web Vital? #
No. web.dev notes that TTFB is not one of the 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, 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? #
A slow server limits how much Google reads. Google’s crawl budget guide 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 and HTTP status codes.
Why does it matter for AI answers? #
Some AI visits happen while a person waits. OpenAI says ChatGPT-User visits pages when someone asks ChatGPT a question (OpenAI crawlers page). Anthropic says the same of Claude-User. These are live fetchers: your server is answering in the middle of someone’s conversation. A quick, cached reply is the polite answer to a search crawler, an AI crawler and a person alike.
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.
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? #
web.dev’s guide to optimising TTFB lists these steps, roughly in this order:
- A server that copes. Enough memory, and an up-to-date software stack.
- A CDN. web.dev says CDNs “solve the problem of user proximity from your origin server”. If you do not use one, it calls adopting one a high priority.
- Caching. Set
Cache-Controlheaders. Even a short cache time helps a busy page: only the first visitor in that time waits for the origin server. See edge cache and cache purge. - Fewer redirects. Fix same-origin ones first, such as a missing
https://or a stray trailing slash. Give newsletters and advertisers the final address, not a shortener. - HSTS. The
Strict-Transport-Securityheader 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 #
- 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 and UTM parameters.
- Redirect chains. Old links that hop twice or three times before the page. See redirect chain and 301 vs 302.
- 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. Heavy crawling can eat server time that people need. See rate limiting and bot traffic in analytics.
How do you measure it? #
web.dev names two field sources: the Chrome User Experience 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 warns that it may expose sensitive details about your set-up, so choose who sees it.
How to check it #
- Open Chrome DevTools, go to the Network panel, reload and click the first request. The Timing tab shows the wait for the server.
- For real visitors’ figures, look at Chrome User Experience Report (CrUX) data, for example in PageSpeed Insights. Our Page Speed Checker is coming soon. Our Core Web Vitals Checker (real users) is coming soon too.
- Test the page more than once. The first visit may miss the cache; later ones show what most visitors get.
- Count the hops before the page with our redirect checker. Each redirect adds to TTFB.
- Look at cache headers with our HTTP header checker to see whether the page came from a cache, and which status code it sent. Our Edge Cache Checker shows whether a page came from the cache.
- Check for an HSTS header with our Security Headers Checker; the HTTP header checker shows all headers. Our SSL Certificate Checker checks the certificate.
- In Google Search Console, open Settings, then Crawl stats. It shows Googlebot’s average response time and host problems with DNS, connections and robots.txt.
- 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). Test it with the robots.txt checker.
- Read your server logs to see which bots hit hardest. If a “Googlebot” is slowing you down, confirm it is real with Verify an AI Bot and read reverse DNS bot check.
- Compare your reply speed and headers with a rival on Compare Two Websites.
- Over time, the edge cache report, bot cost, crawl budget by bot and the page speed monitor are in URSY Pro, opening in stages.
What URSY.com 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 page.
Questions #
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? #
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? #
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? #
They can add load. Read our guide Will AI crawlers slow my website? and why your website is slow.
Related words #
- Core Web Vitals
- Edge cache
- Why your website is slow: the usual causes and fixes
- Largest Contentful Paint
- CDN
- Origin server
- Redirect chain
- Page speed
- Crawl budget
Sources #
- web.dev: Time to First Byte (TTFB) (last updated 18 November 2025), checked 24 November 2026
- web.dev: Optimize Time to First Byte (last updated 28 November 2025), checked 24 November 2026
- PageSpeed Insights: About PageSpeed Insights, checked 24 November 2026
- Google Search Central: Crawl budget management for large sites, checked 24 November 2026
- Search Console Help: Crawl Stats report, checked 24 November 2026
- Google Search Central: How Google interprets the robots.txt specification, checked 24 November 2026
- OpenAI: Overview of OpenAI crawlers, checked 24 November 2026
- Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?, checked 24 November 2026
- MDN: Server-Timing header, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: Time to First Byte (TTFB). URSY. Updated 26 November 2026. https://ursy.com/wiki/time-to-first-byte/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →
- ProAI sentimentWhat AI says about you: positive, neutral, negativeIn URSY Pro →
- ProBot costServer time each bot eatsIn URSY Pro →
- ProReal-timeWho's on the site nowIn URSY Pro →