How to Reduce Server Response Time (TTFB) in 2026

Quick answer: Server response time (TTFB — time to first byte) is how long your server takes to start sending a page after a visitor requests it. Google recommends keeping it under 600 milliseconds, and under 200 milliseconds is ideal. To reduce it, switch to faster hosting, use server-side caching and a CDN, keep your database clean, cut slow plugins, and make sure DNS and SSL handshakes are fast. TTFB is the foundation of page speed: if the server is slow, nothing else on the page can be fast.

Every page speed problem starts at the server. Images, JavaScript and CSS can all be optimized, but they only load after the server responds. If the server takes two seconds to answer, the fastest front-end in the world still shows a blank page for two seconds. This guide explains what TTFB is, how to measure it, and the fixes that cut it — in order of impact.

What TTFB is (and what it is not)

TTFB — time to first byte — is the time between a browser requesting a page and receiving the first byte of the response. It covers three things:

  1. DNS lookup — finding the server’s IP address.
  2. Connection and TLS handshake — opening a secure connection to the server.
  3. Server processing — the server generating the page (running PHP, querying the database, building the HTML) and starting to send it.

TTFB is not the same as page load time. A page can have a fast TTFB and still load slowly if it has huge images or heavy JavaScript. But the reverse is also true: a page with a slow TTFB can never load fast, no matter how well the front-end is optimized.

Google’s own guidance is to keep TTFB under 600 milliseconds. In practice, good sites aim for under 200 milliseconds, and anything over 800 milliseconds is a real problem that shows up in Core Web Vitals — especially LCP, which cannot start until the server responds.

How to measure TTFB

Do not guess. Measure before you change anything, so you can tell what worked.

  1. PageSpeed Insights — reports server response time as one of its diagnostics. It flags the issue when TTFB is over 600 milliseconds.
  2. WebPageTest — shows TTFB for the first request in its waterfall chart, broken down into DNS, connect, TLS and server time. This breakdown tells you which part is slow.
  3. Chrome DevTools → Network tab — click any request and check the “Waiting (TTFB)” figure in the timing breakdown.
  4. Server monitoring tools — your host’s dashboard, or a tool like New Relic or Query Monitor (for WordPress), shows how long the server itself spends generating each page.

Test from a location near your audience. A server in Germany will look fast from Berlin and slow from Sydney. If your audience is spread across countries, test from several locations — and read the CDN section below.

Fix 1: Upgrade your hosting

Hosting is the single biggest factor in TTFB, and it is the one people resist changing because it costs money. The honest truth: shared hosting with hundreds of sites on one slow server will never give you a fast TTFB, no matter how many plugins you install.

What to look for:

  • Server resources. A site on a server with enough CPU and memory responds faster. If your host throttles CPU, every page is slow.
  • Server location. Choose a data centre near your audience. A site for a US audience hosted in Singapore will always be slow for those users.
  • PHP version. WordPress sites should run PHP 8.1 or newer. Each major PHP version is faster than the last, and old versions are a common hidden cause of slow TTFB.
  • Managed WordPress hosting. A host that specializes in WordPress (server-level caching, tuned databases, automatic updates) is usually faster than a generic shared host at the same price.

If your TTFB is over 1 second on a simple page and nothing else explains it, hosting is almost certainly the cause.

Fix 2: Use server-side caching

Caching means the server stores a finished copy of each page and serves it directly, instead of rebuilding the page from scratch on every visit. For a WordPress site, this is the single highest-impact free fix.

There are two levels:

  • Page caching. A plugin (or server-level cache) stores the finished HTML of each page. The first visitor triggers the build; every visitor after that gets the stored copy in milliseconds. If you use LiteSpeed, its built-in cache does this at the server level — which is faster than a plugin.
  • Object caching. WordPress runs database queries to build every page. Object caching (Redis or Memcached) stores the results of common queries in memory, so the database is not asked the same question hundreds of times a day.

Check your cache is actually working: load a page twice and compare TTFB. The second load should be dramatically faster. If it is not, the cache is misconfigured or bypassed.

Fix 3: Use a CDN

A content delivery network (CDN) stores copies of your site on servers around the world and serves each visitor from the nearest one. For TTFB, a CDN helps in two ways: it shortens the network distance (which cuts DNS and connection time), and it can serve cached pages without ever touching your origin server.

A CDN matters most when your audience is international. If all your visitors are in one country and your server is there too, a CDN helps less — but it still protects your server from traffic spikes and serves static files (images, CSS, JavaScript) faster.

Make sure the CDN is actually caching your HTML, not just your images. Many CDNs cache static files by default and pass page requests through to the origin server. Check the settings — full-page caching at the CDN is what cuts TTFB.

Fix 4: Clean up the database

WordPress databases grow messy over time: post revisions, spam comments, transients, orphaned data from deleted plugins. A bloated database means slower queries, and slower queries mean slower TTFB.

  • Limit post revisions — set WP_POST_REVISIONS to 3–5 in wp-config.php. Old sites can have hundreds of revisions per post.
  • Delete spam and trash — empty the spam and trash folders regularly.
  • Clean transients — expired transients from plugins pile up. A database optimization plugin can remove them safely.
  • Remove data from deleted plugins — many plugins leave tables behind when uninstalled. Check the database for tables belonging to plugins you no longer use, and delete them (after a backup).

Run database cleanup monthly. It is a ten-minute job that keeps query times low.

Fix 5: Cut slow plugins and themes

Every active plugin adds work to every page load. Some add a lot.

  • Audit your plugins. Deactivate each one and measure TTFB. If a plugin adds 200 milliseconds, ask whether it is worth it. Many sites run 30+ plugins and need fewer than half.
  • Use Query Monitor (a free WordPress plugin) to see exactly which plugins and database queries are slow on each page. It names the culprits.
  • Replace heavy plugins with lighter ones. A feature-rich page builder or a security plugin that scans every request can cost more time than the feature is worth.
  • Keep the theme lean. A theme that loads dozens of scripts and styles on every page will always be slower than a simple one. If your theme is the problem, no plugin will fix it.

Fix 6: Speed up DNS

DNS lookup is the first step of every request, and a slow DNS provider adds 100–300 milliseconds before anything else happens.

  • Use a fast DNS provider. Cloudflare, Google Cloud DNS and Amazon Route 53 are all fast and free or cheap. Many hosts’ default DNS is slow.
  • Keep TTL reasonable. A very short TTL (time to live) means browsers and resolvers re-check DNS constantly. A TTL of a few hours is a good balance.
  • Preconnect to third-party domains. If your pages load resources from other domains (fonts, analytics, embeds), add <link rel="preconnect"> tags so the browser opens those connections early.

Fix 7: Fix SSL and TLS

The TLS handshake — setting up the secure HTTPS connection — can add 200–400 milliseconds if it is slow.

  • Use TLS 1.3. It completes the handshake in one round trip instead of two. Most modern hosts support it; check your server settings.
  • Enable OCSP stapling. It lets the server prove its certificate is valid without the browser making a separate check to the certificate authority.
  • Use a CDN with edge TLS. A CDN terminates the TLS connection at the edge server near the visitor, which is faster than a handshake all the way to your origin server.

See our guide on HTTPS and SSL errors for the full security setup.

Fix 8: Reduce redirects

Every redirect adds a full round trip. A chain of two or three redirects before the page even starts loading can add half a second to TTFB.

  • Link directly to final URLs in your content, sitemap and internal links — never to a URL that redirects.
  • Fix redirect chains (A → B → C) so they go directly (A → C).
  • Check the HTTP → HTTPS and www → non-www redirects. These are necessary, but they should be a single hop, not a chain.

The TTFB checklist

  • [ ] TTFB measured with WebPageTest (DNS, connect, TLS and server time separated)
  • [ ] Hosting reviewed — enough CPU/memory, data centre near audience, PHP 8.1+
  • [ ] Page caching enabled and verified (second load much faster)
  • [ ] Object caching (Redis/Memcached) enabled if the site is large
  • [ ] CDN caching full pages, not just static files
  • [ ] Database cleaned — revisions limited, spam/trash emptied, transients removed
  • [ ] Plugins audited with Query Monitor; slow ones removed or replaced
  • [ ] Fast DNS provider in use; preconnect tags added for third-party domains
  • [ ] TLS 1.3 enabled; OCSP stapling on
  • [ ] Redirect chains fixed; internal links point to final URLs
  • [ ] TTFB re-measured — target under 600 ms, ideally under 200 ms
  • [ ] Core Web Vitals re-checked after the fixes (see our Core Web Vitals guide)

FAQ

What is a good TTFB in 2026?
Under 200 milliseconds is good, under 600 milliseconds is acceptable (Google’s stated guidance). Anything over 800 milliseconds is a problem worth fixing.

Does TTFB affect SEO rankings?
Indirectly, yes. TTFB is not a ranking factor by itself, but it is the foundation of Core Web Vitals — and LCP cannot pass if TTFB is slow. Google’s crawlers also crawl fewer pages when the server is slow.

Is TTFB the same as page speed?
No. TTFB is only the server’s first response. Page speed includes everything after that: images, CSS, JavaScript and rendering. A fast TTFB with a heavy front-end is still a slow page.

Why is my TTFB fast on the homepage but slow on blog posts?
Blog posts usually run more database queries (related posts, comments, author data) and load more plugins. Check Query Monitor on a slow post to find the specific cause.

Can a plugin fix TTFB?
A caching plugin can help a lot, but it cannot fix slow hosting, a bloated database or a bad server location. Fix the server first, then add caching.

Related guides: Technical SEO Audit Checklist 2026, Image Optimization for SEO.

Leave a Reply

Your email address will not be published. Required fields are marked *