Time to First Byte is the time from when a browser makes an HTTP request for a page until it receives the first byte of the response. It is not a Core Web Vitals metric by itself, but it is a direct sub-component of LCP, and Google recommends keeping it under 800ms. In practice, TTFB over 1.5 seconds makes it nearly impossible to hit Good LCP scores regardless of how well-optimized your images, fonts, and scripts are. You cannot outrun a slow server with frontend tricks.
What TTFB Actually Measures
TTFB captures three separate things: DNS resolution time, TCP connection time (including the TLS handshake for HTTPS connections), and server processing time before the first byte of the response is sent. For return visitors hitting a warm CDN cache, TTFB is dominated by server processing. For new visitors or uncached pages, DNS lookup and TCP connection add to the total. Understanding which component is slow tells you where to fix it.
You can break this down in Chrome DevTools: open the Network panel, click the HTML document request, and look at the Timing tab. It shows Stalled, DNS Lookup, Initial Connection, SSL, Waiting (TTFB), and Content Download as separate rows with individual durations. This eliminates guesswork about where the time is going.
Hosting Tier Is the Biggest Variable
Shared hosting on an oversold server will routinely produce TTFB of 3–6 seconds under load. Managed WordPress hosting on a modern stack — LiteSpeed or NGINX, PHP-FPM, with server-side caching — typically delivers under 300ms to origin, often under 100ms with a CDN. The difference is not marginal; it is foundational. If you are on cheap shared hosting, no amount of frontend optimization produces consistently Good scores. The hosting infrastructure has to be right first.
For US-based clients — I work primarily with businesses in the Phoenix area and nationally through Salterra — I look at hosting providers with infrastructure in both US West and US East, plus a CDN layered on top. That combination covers the geographic spread of a typical US audience without relying on a single origin location to serve everyone.
Server-Side Caching
WordPress generates pages dynamically by default — every unauthenticated visitor request hits PHP and the database. On a busy site, that can mean 300–800ms of server processing even on good hardware, once you factor in plugin overhead. A full-page cache (WP Rocket, W3 Total Cache with disk-enhanced, or LiteSpeed Cache) serves pre-rendered HTML to unauthenticated visitors, reducing server processing time to near zero. This is typically the highest-ROI change available for WordPress TTFB — I have seen it cut response times from 700ms to under 50ms on the same hardware.
Object caching with Redis or Memcached speeds up database queries for pages that cannot be fully served from a page cache — WooCommerce cart pages, logged-in user views, and dynamic search results. It is a secondary optimization but meaningful for complex sites with heavy query loads.
CDN and Edge Caching
A CDN caches static assets and, with proper configuration, full HTML pages at edge nodes physically close to your users. Round-trip time from a user in Los Angeles to an origin server in New York adds 60–80ms of latency before any server processing even begins. A CDN edge node in Los Angeles reduces that to under 5ms. For a site serving national US traffic, a CDN is not optional — it is the mechanism by which you deliver consistent low TTFB across the full geographic spread of your audience.
The critical configuration detail: confirm your CDN is actually caching HTML, not just static assets. Many CDN configurations skip HTML caching by default because of cookies — WordPress sets cookies on first visit, which tells the CDN to treat every response as personalized and skip caching. CDN providers like Cloudflare offer WordPress-specific rules that bypass this limitation for unauthenticated visitors.
Database Query Optimization
Slow database queries are a silent TTFB killer on older WordPress sites with years of accumulated plugins. Use the Query Monitor plugin to identify queries running over 50ms. Common culprits: unindexed meta queries that scan large wp_postmeta tables, queries without proper LIMIT clauses on high-row tables, and plugins that run full WP_Query calls on every page load without caching their output. Adding database indexes to frequently-queried meta keys and deactivating plugins that query without caching typically produces measurable TTFB improvements without any hosting changes.
PHP Version
PHP 8.2 and 8.3 execute substantially faster than PHP 7.4, which many sites still run despite it being end-of-life. Upgrading PHP version is usually a one-click operation in a hosting control panel and can reduce server processing time by 20–30% on complex WordPress setups. Verify plugin compatibility before switching — most actively maintained plugins support PHP 8.x now — but on nearly every site I migrate to a newer PHP version, TTFB improves without any other changes.
HTTP/2 and HTTP/3
HTTP/2 multiplexing allows multiple requests to share a single TCP connection, eliminating the per-connection overhead of HTTP/1.1. HTTP/3 (QUIC protocol) further reduces connection establishment time, particularly on mobile and high-latency connections. Most current hosting providers and CDNs support HTTP/2 by default; HTTP/3 is available on Cloudflare and several others. Confirm your site is serving over HTTP/2 at minimum — the DevTools Network panel shows the protocol version in the waterfall.
Monitoring TTFB Over Time
TTFB can degrade quietly as traffic grows, plugins accumulate, or shared hosting becomes more congested. Set up synthetic monitoring with a tool like UptimeRobot, Better Uptime, or Pingdom to track TTFB from multiple geographic locations on a scheduled basis. A sudden spike is often the first signal of a hosting problem, a runaway background process, or a database table that needs optimization. Catching it in monitoring before users report it is far preferable to diagnosing it after a ranking drop.
TTFB improvements translate directly into better LCP scores and a better user experience across every page on your site. For the full picture of how server performance fits into your technical SEO health, a website audit covers TTFB alongside crawl efficiency, indexation, and Core Web Vitals in one pass. If you are working through the vitals systematically, Core Web Vitals optimization covers the sequencing in detail, and page speed optimization goes deeper on the full delivery stack.