Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Slow TTFB (time to first byte): how to find and fix it

SEO-257Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Time to first byte (TTFB) is the time between a visitor's browser asking for a page and the first byte of the answer arriving. It includes redirects, DNS lookup, connection setup (including the TLS handshake for HTTPS) and the time your server spends building the page.

Google's web.dev guidance treats a TTFB of 0.8 seconds or less as good and over 1.8 seconds as poor, measured at the 75th percentile of real visits. TTFB is not one of the Core Web Vitals, but it comes before Largest Contentful Paint (LCP), so a slow one makes LCP slow too.

Where TTFB sits in a page load
  1. Request sentBrowser asks for the page
  2. Redirects, DNS, TLSConnection is set up
  3. Server builds pageSlow database, no cache, busy server
  4. First byte arrivesTTFB ends here
  5. Render and LCPContent appears late

Everything the visitor sees waits for the first byte. A slow server response delays all later steps.

Why it costs you leads or sales

Visitors see a blank screen while they wait. On mobile networks the wait is longer, and people on ad clicks are the least patient. Some leave before the page shows anything, and those visits may never fire your analytics or ad tags, so they vanish from your reports as well.

Slow responses also hurt search visibility. A late first byte makes LCP harder to pass, and Google evaluates pages for ranking with mobile-first indexing. A very slow or erratic server can also reduce how much Googlebot crawls your site.

How TTFB eats into your LCP budgetExample numbers
How TTFB eats into your LCP budget (example)TTFB (fast server): 0.4 seconds; LCP (fast server): 1.9 seconds; TTFB (slow server): 1.9 seconds; LCP (slow server): 3.6 seconds0130.41.91.93.6TTFB (fast server)LCP (fast server)TTFB (slow server)LCP (slow server)seconds

Example: the same page with a fast and a slow server. The 2.5 s LCP target is the same, but a slow TTFB leaves far less time for images and rendering.

How to check if your site has it

Measure TTFB on your key pages
  1. Run PageSpeed Insights

    Test your home page, a landing page and a checkout or form page. Look at the field data (real users) first, then the diagnostic 'Reduce initial server response time'.

  2. Check Search Console

    Open Settings > Crawl stats and look at 'Average response time'. A high or rising line means Googlebot also sees a slow server.

  3. Use browser DevTools

    Open the Network tab, reload, click the first document request and read 'Waiting for server response' in the Timing tab.

  4. Test from the command line

    Run the curl command below a few times, at different hours, and compare.

  5. Test uncached and cached

    Compare a normal request with one that has a random query string. A big gap means caching works for some visitors but not all.

Measure TTFB with curlbash
curl -o /dev/null -s -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nTLS: %{time_appconnect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n" https://www.example.com/

How to fix it

Work from the cheapest, biggest wins down. Most slow TTFB comes from pages being built from scratch on every visit.

Common causes of slow TTFB and the usual fix
CauseHow you spot itUsual fix
No page cachingSlow every time, fast only on repeatTurn on full-page caching
Redirect chainsSeveral 301/302 hops before the pageLink straight to the final URL
Slow database or pluginsSlow only on dynamic pagesRemove heavy plugins, add object cache, optimise queries
Underpowered or distant hostingSlow everywhere, worse at peakUpgrade plan, move region, add a CDN
Slow external callsPage waits on an APICache the result or load it after the page
Fix slow TTFB by platform
  1. Enable page caching

    Use one caching plugin or your host's built-in cache (not several). Turn on full-page caching and cache preloading.

  2. Audit plugins

    Deactivate plugins one at a time on a staging copy and re-measure. Query Monitor shows slow database queries and slow hooks.

  3. Add object caching and current PHP

    If your host offers Redis or Memcached, enable it. Run a supported PHP version from your host's control panel.

  4. Use a CDN that caches HTML

    Many CDNs only cache images and scripts by default. Enable HTML caching for anonymous visitors, excluding cart, checkout and account pages.

Example: short-lived full-page cache in nginx (adapt to your app)nginx
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=pages:10m max_size=500m inactive=10m;

server {
  location / {
    proxy_cache pages;
    proxy_cache_valid 200 5m;
    proxy_cache_bypass $http_cookie;
    add_header X-Cache-Status $upstream_cache_status;
    proxy_pass http://app_backend;
  }
}

How to confirm it's fixed

Confirmation checks
  • curl TTFB is under 0.8 s on repeated runs on your key pages
  • The cache header shows a hit (such as X-Cache-Status: HIT) on the second request
  • PageSpeed Insights no longer flags 'Reduce initial server response time'
  • Search Console Crawl stats shows a falling average response time
  • Field data improves after about 28 days, since real-user data is a rolling window

How to prevent it happening again

Keep TTFB low
  • Re-measure after every new plugin, app, theme change or hosting change
  • Keep redirects to a single hop and link to final URLs
  • Test key pages at peak hours, not only when the site is quiet
  • Review Search Console Crawl stats monthly
  • Check traffic spikes from campaigns will not exceed your hosting capacity
  • Do not purge the whole cache during busy hours

How FunnelGuard handles this

FunnelGuard detects this only partly. A robot visitor runs your real customer journeys on a schedule, and timing is captured on those journey runs. That gives you a view of how long the pages in your funnels take when the journey is run, and a failure is re-checked from a second region before an alert goes out.

Questions people ask

What is a good TTFB?

Google's web.dev guidance treats a TTFB of 0.8 seconds or less as good, and over 1.8 seconds as poor. These are measured at the 75th percentile of real visits. Aim for the lowest you can reach on key pages.

Why is my TTFB so slow?

The usual causes are no page caching, redirect chains, a slow database or heavy plugins, an underpowered or distant host, and slow calls to external services. Measure several times to tell which one applies. Slow everywhere points to hosting; slow only on some pages points to the application.

Does TTFB affect SEO?

TTFB is not a Core Web Vital, but it comes before LCP, so a slow response makes LCP harder to pass. A very slow server can also limit how much Googlebot crawls. Fixing it helps both visitors and search visibility.

How do I reduce TTFB on WordPress?

Turn on full-page caching, remove slow plugins, enable object caching if your host offers it, run a supported PHP version, and use a CDN that caches HTML for anonymous visitors. Exclude cart and checkout pages from the cache.

How do I check TTFB?

Use PageSpeed Insights, the Network tab in browser DevTools ('Waiting for server response'), or curl with the time_starttransfer option. Search Console's Crawl stats also shows average response time as Googlebot sees it.

Will a CDN fix slow TTFB?

Only if it caches your HTML pages. Many CDNs cache just images and scripts by default, so the page itself still comes from your origin server. Enable HTML caching for anonymous visitors and keep private pages out of it.

Does Google Tag Manager slow down TTFB?

No. GTM loads in the browser after the page's first byte arrives, so it does not change TTFB. It can slow later metrics such as LCP and interaction delays.

Can FunnelGuard monitor my TTFB?

Only partly. FunnelGuard captures timing on its journey runs, but it is not a full TTFB monitor for every page and does not report real-user field data. Check the rest with PageSpeed Insights and Search Console.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Timing captured on journey runs.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.