Short answer: TTFB is the time between a browser requesting a page and receiving the first byte of the response. It covers DNS, connection setup and the server building the page. Aim for 0.8 seconds or less. Page caching is usually the biggest single improvement.
What affects TTFB
- Server work: PHP and database queries building the page.
- Distance: how far the visitor is from the server.
- Connection setup: DNS lookups, TCP and TLS handshakes.
- Server load: busy or under-sized servers respond more slowly.
How to measure it
Use PageSpeed Insights, your browser's developer tools (the "Waiting for server response" timing) or a monitoring service. Test several times; one result can mislead.
How to improve it
- Page caching so pages don't have to be rebuilt for each visitor. See caching explained.
- A recent PHP version. See which PHP version to use.
- Object caching with Redis for dynamic or logged-in pages.
- Fewer heavy plugins and fewer slow database queries.
- A CDN for visitors far from your server. See what a CDN is.
- Fast hosting on NVMe storage, close to your audience.
TTFB and Core Web Vitals
TTFB isn't a Core Web Vital itself, but a slow TTFB delays everything after it, including Largest Contentful Paint. See Core Web Vitals.
Frequently asked questions
Why is TTFB slow only on some pages?
Uncached or heavy pages, such as search results or carts, take more work to build.
Does a CDN always fix TTFB?
It helps cached content and distant visitors. Dynamic pages still depend on your server.
Is TTFB the same as page load time?
No. It's only the first part of loading a page.



