How to Reduce Server Response Time (TTFB)

To reduce server response time, cut how long your server takes to build and start sending a page. Turn on server-side page caching, add a CDN, run a current PHP version, and speed up the database. If those are done and it's still slow, the server itself is the limit and a faster host lowers it.

Key takeaways

  • TTFB (Time to First Byte) is how long the browser waits from requesting a page to receiving the first byte of the answer.
  • PageSpeed Insights and Lighthouse flag a slow TTFB as "Reduce initial server response time."
  • Google generally wants server response under ~600ms, and a good target for a cached page is under ~200ms (as of 2026).
  • The biggest wins are page caching and a CDN, so responses are served pre-built and from nearby.
  • Server response is largely host-bound — if caching and a CDN are on and it's still slow, a faster host is often the only real fix.
Disclosure: Some links on this page are affiliate links. If you buy through them, we may earn a commission at no extra cost to you. We only recommend products we believe genuinely help with the problem this page covers. Our guidance stays the same whether or not a link earns anything.

The problem: your site takes too long to even start loading

You ran a speed test and got a warning: "Reduce initial server response time." Your pages feel slow before anything appears on screen — the browser sits there waiting, then the design pops in all at once. You may have already shrunk your images and cleaned up scripts, yet the score barely moved. The delay is happening before your content is even sent.

That waiting period is your server response time, and it is one of the most common speed problems for WordPress and other database-driven sites. The good news: it is measurable and fixable, and most of the fixes are things you can turn on yourself. This guide is part of our wider website speed optimization guide, which covers the front-end work; here we focus on the server side.

How to tell what's causing it

Before changing anything, measure your TTFB and find where the time goes. A few quick tests point you straight at the cause.

Test 1 — Run a speed test. Enter your URL in PageSpeed Insights, GTmetrix, or WebPageTest. In GTmetrix and WebPageTest, open the Waterfall view and look at the first request; the TTFB or "Waiting" segment is your server response time. PageSpeed Insights reports the same thing under "Reduce initial server response time."

Test 2 — Compare cached and uncached. Load the page once, then reload it. If the first hit is slow but the second is fast, caching is helping some visitors but not the first one. If every load is slow, caching is either off or not working.

Test 3 — Test a plain static file. Upload a simple HTML file (say test.html) to the same server and test its TTFB. A static file skips PHP and the database entirely, so it measures the raw server. If even that file is slow to respond, the bottleneck is the server, not your site's code.

Is it your site or your host? This is the key question for TTFB. First, turn on full-page caching and test again. If a cached page is still slow to respond — or if the plain test.html file from Test 3 is also slow — the server itself is the bottleneck, because a pre-built or static response involves almost no work on your side. That points to slow, overloaded, or distant hosting. But if the cached page is fast and only uncached, dynamic pages are slow, the cause is on your side: no caching, an old PHP version, or heavy database queries you can fix with the steps below.

What TTFB actually is

TTFB (Time to First Byte) is the time from when a browser requests a page to when it receives the first byte of the response. It is made of three parts: the request travel time (how long the request takes to reach the server), the server processing time (how long the server takes to build the page), and the response start (the server beginning to send data back). Server processing is usually the biggest piece you can control.

On a WordPress site with no caching, the server does real work on every single request: PHP runs, queries the database, assembles the HTML, and only then sends the first byte. That is why page caching matters so much — it lets the server hand back a page it already built, skipping most of the processing. Without it, the same page is rebuilt from scratch for every visitor.

Speed tools set clear targets. PageSpeed Insights and Lighthouse flag this as "Reduce initial server response time," and Google generally wants server response under ~600ms, ideally lower; a good target for a cached response is under ~200ms (as of 2026). TTFB also feeds directly into Largest Contentful Paint, the Core Web Vitals metric for how fast your main content appears — a slow first byte delays everything after it. Our Core Web Vitals guide explains how LCP is scored.

Your options at a glance

A handful of causes produce a slow server response. Match your situation to the cause, then follow the matching step below.

Likely causeTell-tale signWhere to fix
No server-side or page cachingEvery load is slow; pages are rebuilt each timeStep 1
Server far from your visitorsFast for you, slow for distant usersSteps 2 and 6
Outdated PHP versionRunning an old PHP release in your host panelStep 3
Slow database queriesUncached pages slow; large or bloated databaseStep 4
Too many plugins / heavy processingResponse climbs as you add pluginsStep 5
Slow or overloaded hostingEven a cached or static file is slowStep 7 (better host)

How to reduce server response time, step by step

Work through these in order and re-test your TTFB after each one. Stop when you hit your target — you may not need every step.

  1. Enable server-side and page caching. This is the single biggest win. Turn on your host's built-in cache if it has one, use a server cache such as LiteSpeed or Varnish, or install a caching plugin (for example WP Super Cache, W3 Total Cache, or LiteSpeed Cache). Caching stores a ready-made copy of each page so the server sends it pre-built instead of running PHP and the database on every request. Clear the cache and re-test.
  2. Add a CDN with edge caching. A CDN (Content Delivery Network) is a network of servers around the world that keep copies of your pages close to visitors. With page caching at the edge, a request is answered from a nearby city instead of travelling to your origin server, which cuts the request travel time. Connect a CDN such as Cloudflare and enable caching of static pages.
  3. Upgrade to the latest supported PHP version. Newer PHP releases process pages noticeably faster than old ones. In hPanel or cPanel, find the PHP version selector and move to the newest supported release, then test your site for compatibility. Our PHP settings guide walks through changing the version and the settings that go with it.
  4. Optimize the database and slow queries. Over time a WordPress database fills with post revisions, expired transients, and spam, which slows every uncached query. Remove unused data with a tool such as WP-Optimize, delete plugins you no longer use, and keep the database lean so queries return faster.
  5. Reduce plugin and processing overhead. Every active plugin can add PHP work to each request. Deactivate plugins you don't need, replace heavy ones with lighter alternatives, and avoid plugins that run on every page load (live counters, related-posts widgets, on-site search). For WordPress-specific tuning, see our guide to speeding up WordPress.
  6. Choose a server location near your main audience. The physical distance between your server and your visitors adds real milliseconds. If most of your traffic is in one region, pick a data-center location in or near that region when your host offers a choice. A CDN helps here too, but the origin location still matters for uncached and dynamic requests.
  7. If it's still slow, move to faster, better-resourced hosting. If caching and a CDN are on, PHP is current, the database is clean, and a plain static file is still slow to respond, you have reached the limit of your current server. Server response is one of the few things you often cannot fix without a better host. Upgrade to a plan or provider with more resources and server-level caching so the raw response is fast.

Common mistakes to avoid

Don't spend hours optimizing images and JavaScript to fix a problem that is actually server-side. Image and script tuning improve other speed metrics, but they do almost nothing for TTFB, because TTFB is measured before any of those files are sent. If your speed test flags "Reduce initial server response time," start with caching and the server — not the front end.

The other mistakes we see most often are:

  • Leaving caching off. Many slow-response sites simply have no page caching, so the server rebuilds every page for every visitor. Turning caching on is usually the fastest single improvement.
  • Blaming the theme. People switch themes to chase TTFB when a plain static file on the same server is also slow. If the raw server is slow, the theme is not your problem.
  • Testing once from one location. A single test near your server can look fine while distant visitors wait far longer. Test from more than one region before deciding you're done.
  • Ignoring the PHP version. An outdated PHP release quietly adds processing time to every uncached request. It's a free speed gain many sites never claim.

How to keep server response fast

Once your TTFB is where you want it, a few habits keep it there:

  • Keep caching and a CDN switched on. These are your two biggest levers. Confirm the cache is actually serving pages after any big change or plugin update.
  • Keep PHP current. Move to each new supported PHP version after checking compatibility, so you keep the processing-speed gains.
  • Monitor TTFB after changes. Re-run a speed test after adding plugins, changing themes, or a traffic spike, so a regression doesn't go unnoticed.
  • Keep the database tidy. Clean up revisions and expired data on a schedule so uncached queries stay fast.
  • Match your plan to your traffic. If response time climbs whenever you get busy, your plan may be under-resourced for real visitor numbers.

Frequently asked questions

What is a good TTFB or server response time?

As of 2026, Google generally wants server response time under about 600ms, and lower is better. For a cached page, a good target is under about 200ms. If your TTFB is well above 600ms, your speed tool will flag "Reduce initial server response time," and it's worth working through caching, PHP, and hosting to bring it down.

Why is my server response time so high?

The usual causes are no page caching (so the server rebuilds each page from PHP and the database on every request), an outdated PHP version, slow database queries, too many plugins, a server located far from your visitors, or slow, overloaded hosting. Run a static-file test to tell whether the cause is your site's code or the server itself.

Can I fix TTFB without changing hosts?

Often, yes. Enabling page caching, adding a CDN, upgrading PHP, cleaning the database, and cutting plugin overhead fix most slow-response problems without a host change. But if all of that is done and a cached or static page is still slow, the server itself is the limit — and then a faster host is usually the only real fix.

Does caching reduce TTFB?

Yes, and it is usually the biggest single improvement. Page caching stores a ready-built copy of each page, so the server sends it straight back instead of running PHP and querying the database on every request. That skips most of the processing time, which is normally the largest part of server response time.

How does TTFB affect SEO and Core Web Vitals?

TTFB is the first thing that has to happen on every page load, so a slow first byte delays everything after it — including Largest Contentful Paint, the Core Web Vitals metric for how fast your main content appears. Because Core Web Vitals are a ranking signal, a slow server response can indirectly hold back your SEO as well as frustrate visitors.

Does a CDN reduce server response time?

A CDN reduces the request travel time by answering from a server near the visitor, and if it caches full pages at the edge it can serve them without touching your origin at all. That lowers TTFB for most visitors. For uncached, dynamic requests, though, the response still comes from your origin server, so your host's speed still matters.

What tools measure TTFB?

PageSpeed Insights reports it as "Reduce initial server response time." GTmetrix and WebPageTest show it directly in their Waterfall view as the TTFB or "Waiting" segment of the first request. Test from more than one location, because response time varies with distance between the visitor and your server.

Summary

Server response time, or TTFB, is how long your server takes to start sending a page — and it happens before any of your images or scripts load, which is why front-end tweaks don't fix it. Measure it in PageSpeed Insights or a Waterfall view, then run the static-file test to learn whether it's your site or your host. Turn on page caching, add a CDN, upgrade PHP, clean the database, and trim plugins. If a cached or static page is still slow, the server is the limit and a faster host is the fix. For the rest of your speed work, our website speed optimization guide is the next step.

When a faster host is the real fix. Server response time is largely host-bound. If you've already enabled full-page caching and a CDN, upgraded PHP, and cleaned the database — and your TTFB is still high, or even a plain static HTML file is slow to respond — then the server itself is the bottleneck, and no amount of front-end work will change it. In that specific case, moving to a faster, better-resourced host with server-level caching (for example LiteSpeed) directly lowers TTFB, because the raw response is built and sent faster. Hostinger is one provider worth comparing on that basis; look at its server resources and built-in caching against your traffic. If valid at checkout, new users may be able to apply a code such as SPECIAL15 or SPECIAL10, subject to Hostinger's terms. If caching and PHP fixed your response time, you don't need to switch anything.

Compare Hostinger plans →

Affiliate disclosure: if you sign up through this link we may earn a commission, at no extra cost to you. How this works.

Keep reading

Related: understand what a web server actually does, and if you run a VPS, how to monitor and improve its performance.

References

  • Google web.dev — "Time to First Byte (TTFB)" and "Reduce server response times (TTFB)" documentation.
  • Google PageSpeed Insights and Lighthouse — "Reduce initial server response time" audit reference.
  • Google web.dev — "Largest Contentful Paint (LCP)" and Core Web Vitals thresholds.
  • PHP.net — supported versions and release performance notes.
Bitrich777 Hosting Team
About the author

The editorial team behind the Bitrich777 Hosting Help Center — practical, tested guides on web hosting, WordPress, servers, DNS, SSL, email, security and migration. Every walkthrough is reproduced on a live host before it is published.

Spotted an error? Tell us