Skip to content
FunnelGuard

Fix guide by FunnelsGuard

TTFB over 800 ms: how to find the cause and fix a slow server

PRF-050High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Time to first byte (TTFB) is the time between a browser requesting a page and receiving the first byte of the response. It includes DNS lookup, connecting, the secure (TLS) handshake, any redirects, and the time your server spends building the page.

Google's web performance guidance treats a TTFB of about 800 ms or less as good, and anything well above that as needing work. TTFB is not a Core Web Vital itself, but every other loading metric starts after it. A slow first byte delays everything else.

Why it costs you leads or sales

The visitor sees a blank screen while the server thinks. Paid traffic is hit hardest: someone who just clicked an ad expects the page now, and may leave before your form, button or tracking tags have even loaded. If they leave early, you also pay for the click and lose the conversion data.

Where a slow first byte hurts the funnel
  1. Ad clickVisitor arrives from an ad
  2. Server responseTTFB over 800 ms, blank screen
  3. Page rendersForm and buttons appear
  4. Tags fireAnalytics and ad pixels load
  5. Lead or saleConversion recorded

The break happens before anything is shown, so every later step is lost for visitors who leave.

Visitors still waiting as TTFB growsExample numbers
Visitors still waiting as TTFB grows (example)300 ms: 95 % of visitors still on the page; 800 ms: 88 % of visitors still on the page; 1.5 s: 78 % of visitors still on the page; 3 s: 62 % of visitors still on the page0367395887862300 ms800 ms1.5 s3 s% of visitors still on the page

Example: illustrative numbers showing how patience can drop as the first byte gets slower. Your own figures will differ.

How to check if your site has it

Measure the landing pages and funnel pages that matter, not just the home page. Test more than once, because a single slow reading can be a cold cache.

Measure TTFB
  1. Use Chrome DevTools

    Open the page, press F12, go to the Network tab, reload, click the first document request and open Timing. Look at 'Waiting for server response'.

  2. Use curl for a quick reading

    Run the command below from a terminal. Run it three or four times and compare the first request with later ones.

  3. Test with and without ad parameters

    Compare your plain URL with the same URL plus ?utm_source=test&gclid=abc. A big difference points to caching that ignores ad traffic.

  4. Test from another region

    If your visitors are far from your server, TTFB will look worse for them than for you.

Measure TTFB with curlbash
curl -o /dev/null -s -w 'DNS: %{time_namelookup}s
Connect: %{time_connect}s
TLS: %{time_appconnect}s
TTFB: %{time_starttransfer}s
Total: %{time_total}s
' https://www.example.com/landing-page/
Rough reading guide for TTFB
TTFBMeaningWhat to do
Under 800 msGoodKeep monitoring
800 ms to 1.8 sNeeds improvementCheck caching, hosting and redirects
Over 1.8 sPoorTreat as urgent

How to fix it

Work from the cheapest fix to the most involved. Most sites get the biggest gain from caching the HTML so the server does not rebuild the page for every visitor.

Reduce TTFB step by step
  1. Cache full pages

    Serve a saved copy of the HTML instead of building it on each request. Check the platform tabs below.

  2. Put a CDN in front

    A CDN serves cached pages from locations close to visitors, which cuts network time and takes load off your server.

  3. Remove redirect hops

    Link directly to the final https URL with the right www or non-www host. Each redirect adds a full round trip.

  4. Find slow back-end work

    Slow database queries, heavy plugins, and calls to outside APIs made while building the page all add to TTFB. Profile them and remove or defer what you can.

  5. Upgrade hosting if needed

    If the page is cached and still slow, the server may be overloaded or on cheap shared hosting. Move to a plan with more resources or a current PHP version.

Fix by platform
  1. Enable page caching

    Use your host's built-in cache or a caching plugin and turn on page caching. Then check that logged-out visitors get cached pages.

  2. Update PHP

    In your host's control panel, switch to a currently supported PHP version after testing the site on staging.

  3. Audit plugins

    Deactivate plugins one at a time on staging and re-measure TTFB. A query monitor plugin can show slow database queries.

Example: Nginx FastCGI page cache (adapt to your setup)nginx
fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=PAGES:50m inactive=60m;

server {
  location ~ \.php$ {
    fastcgi_cache PAGES;
    fastcgi_cache_key "$scheme$request_method$host$uri";
    fastcgi_cache_valid 200 10m;
    add_header X-Cache $upstream_cache_status;
    # existing fastcgi_pass settings go here
  }
}
Before and after caching

No page cache

  • Server builds the page on every visit
  • TTFB above 800 ms
  • Slower again when traffic rises

Cache and CDN

  • Saved HTML served straight away
  • TTFB well under 800 ms on cached pages
  • Server load stays steady

How to confirm it's fixed

Confirm the fix
  • Run the curl command several times on each key landing page and confirm TTFB is under 800 ms
  • Test the URL with ?utm_source=test&gclid=abc and confirm it is just as fast
  • Check the response headers show a cache hit (for example X-Cache: HIT or a CDN cache header)
  • Test from at least one location far from your server
  • Confirm forms, carts and checkouts still work and are not cached

How to prevent it happening again

TTFB often creeps back after a new plugin, a theme change, a traffic peak or a hosting change. Re-measure after every release, and keep a short list of the pages that get paid traffic so you always test the same ones.

Habits that keep TTFB low
  • Measure TTFB after each plugin, theme or app change
  • Keep PHP and server software up to date
  • Review slow database queries every few months
  • Link to final URLs to avoid redirect hops
  • Monitor key pages on a schedule instead of testing by hand

How FunnelGuard handles this

FunnelGuard detects this today. When its robot visitor runs your journeys on a schedule, it records the TTFB for each step, so you can see which page in the funnel is slow, not just the home page. If a step fails a check, it is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

FunnelGuard measures from the EU or the US, so it shows what a visitor from those regions sees, not every location in the world. The Free plan covers 1 site and 2 journeys with daily checks and needs no card. A free read-only website audit is also available.

Questions people ask

What is a good TTFB?

A TTFB of about 800 ms or less is generally considered good. Between roughly 800 ms and 1.8 s needs improvement, and above that is poor. Aim lower on landing pages that receive paid traffic.

Why is my TTFB so high?

The most common causes are no full-page caching, slow hosting, heavy plugins or slow database queries, redirects before the final page, and no CDN for distant visitors. Measure with curl or DevTools to see whether the delay is network time or server time.

How do I reduce TTFB on WordPress?

Turn on page caching through your host or a caching plugin, update to a supported PHP version, remove slow plugins and add a CDN. Then re-measure the landing pages as a logged-out visitor.

Is TTFB a Core Web Vital?

No. TTFB is not a Core Web Vital, but it comes before Largest Contentful Paint, so a slow first byte makes loading metrics worse. Google's guidance treats about 800 ms or less as good.

Does a CDN lower TTFB?

Yes, if it caches your HTML or serves pages from a location near the visitor. A CDN that only caches images and scripts will not reduce the time your server takes to build the page.

Can redirects cause a high TTFB?

Yes. Each redirect adds another request and wait before the final page starts. Link straight to the final https URL, and avoid chains like http to https to www.

Why is TTFB slow only with ad links?

Many caches treat URLs with query strings such as gclid or utm parameters as separate pages and skip the cache. The server then builds the page every time. Configure your cache to ignore tracking parameters.

How can I monitor TTFB automatically?

Use a synthetic monitoring tool that visits your pages on a schedule. FunnelGuard records TTFB for each step of a journey and sends an alert when a check fails, so you do not have to test by hand.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: ttfb per step.

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.