Reduce TTFB WordPress - Diagnose Slow Server Response and Fix It (2026)
Time to First Byte is how long a browser waits before your server starts sending the page. Every other loading metric waits on it, so a slow TTFB pushes back FCP and LCP too.
What TTFB Includes
TTFB covers everything from the moment a browser asks for your page until the first byte of the response arrives:
- Redirects, if the URL redirects before reaching the final page.
- DNS lookup to find your server.
- Connection and TLS setup for HTTPS.
- Server processing, where WordPress runs PHP and database queries, or a cache returns a saved page.
- Network travel back to the browser.
Google's guidance treats a TTFB of 0.8 seconds or less as good, at the 75th percentile of real visits, and over 1.8 seconds as poor. TTFB isn't a Core Web Vital itself, but it sets the floor for LCP.
Step 1: Measure the Right Way
Check field TTFB
PageSpeed Insights shows real-user TTFB when you have enough traffic.
Test logged out
Logged-in users don't get cached pages, so test in a private window or with a tool.
Test twice
The first request may build the cache; the second shows cached performance.
Test uncached
Add a random query string, which many caches skip, to see how fast WordPress builds the page.
Test from near and far
Compare a test location close to your server with one far away.
Step 2: Read the Pattern
| What You See | Likely Cause | Fix |
|---|---|---|
| Slow on every request, even cached | Slow server, overloaded plan or no working cache | Check caching works; upgrade hosting |
| Fast cached, slow uncached | Heavy PHP, plugins or database | Profile plugins; object caching; PHP upgrade |
| Fast near the server, slow far away | Distance | CDN with HTML edge caching |
| Slow only for logged-in users | No page cache for logged-in users | Object caching; lighter plugins; user cache where appropriate |
| Slow at busy times | Resource limits or too few PHP workers | Better caching coverage; larger plan |
| Extra delay before the page request | Redirect chains | Link directly to final URLs; fix http to https and www redirects |
Fix 1: Make Sure Pages Are Cached
Page caching is the biggest TTFB fix for most WordPress sites. A cached page is returned without running PHP or the database.
Check that caching is actually working: view the page source logged out and look for your caching plugin's comment, or check response headers for your host's cache status. If you use WP Rocket, pages are cached automatically and preloaded, so visitors rarely hit an uncached version. See what a caching plugin does and cache preload.
Fix 2: Speed Up Uncached Requests
Some pages will always be uncached: carts, checkouts, account pages, search results and anything for logged-in users. For these:
- Upgrade PHP to a current version. See PHP version and speed.
- Add object caching with Redis or Memcached. See object caching.
- Find heavy plugins with Query Monitor. See finding slow plugins.
- Clean the database and reduce autoloaded options. See database optimization.
Fix 3: Reduce Distance
If TTFB is fine near your server but slow for distant visitors, the network round trip is the problem. Options:
- Choose a data center close to most of your visitors.
- Use a CDN with HTML edge caching, such as Cloudflare APO, so pages are served from nearby locations.
- Reduce connection setup with modern protocols like HTTP/3, which many hosts and CDNs support.
A standard CDN that only caches static files won't reduce TTFB for the HTML page itself. See WordPress CDNs.
Fix 4: Remove Redirects
Each redirect adds a full round trip before the real page request starts. Common WordPress redirect chains include http to https, then non-www to www, then a trailing slash redirect.
Make sure internal links, your site URL settings and canonical URLs all use the final address. If you migrated domains, update old links rather than relying on redirects.
Fix 5: Upgrade Hosting When Needed
If cached pages are still slow from a nearby location, your server or plan is the bottleneck. Signs include consistently high TTFB, resource limit warnings and slowdowns during traffic peaks. See WordPress hosting and speed.
Measuring TTFB in Your Browser
You can see TTFB for any page in Chrome:
Open DevTools
Open the Network panel and reload the page in a private window.
Click the document request
It's the first request, for the page itself.
Open the Timing tab
The "Waiting for server response" line is the server part of TTFB.
Compare cached and uncached
Reload to see the cached time, then add a query string to see the uncached time.
Response headers also help. Many hosts and CDNs add a cache status header showing HIT or MISS, which tells you whether the page came from cache.
TTFB on Different Hosting Types
| Hosting | Cached Pages | Uncached Pages |
|---|---|---|
| Budget shared, no cache | Slow | Slow |
| Shared with a caching plugin | Fast | Often slow |
| LiteSpeed host with LiteSpeed Cache | Fast | Depends on plan |
| Managed WordPress | Fast | Moderate to fast |
| Cloud VPS, well configured | Fast | Fast |
| Any host plus HTML edge caching | Fast worldwide | Unchanged |
The pattern is consistent: caching fixes TTFB for most visitors on almost any host, while uncached TTFB depends on the server's power and your site's code.
Things That Look Like TTFB Problems But Aren't
- Testing while logged in, which bypasses page cache.
- First request after clearing cache, before preload has rebuilt it.
- Security challenges from a firewall or CDN that add a check before the page.
- Testing from very far away with a tool's default location.
Rule these out before changing hosts.
TTFB and Core Web Vitals
TTFB is part of LCP: if the page takes a second to start arriving, the main content can't appear before then. Reducing TTFB gives every other loading improvement more room.
But a fast TTFB alone doesn't guarantee good LCP. Render-blocking CSS, late-discovered images and heavy JavaScript still delay the main content after the HTML arrives. See improving LCP.
A Worked Example
A store's PageSpeed Insights field data shows TTFB around two seconds. Tests reveal cached product pages are fast near the server, but many real visits are logged-in customers and cart pages, which aren't cached, plus visitors from another continent.
The owner enables Redis object caching, removes a related-products plugin running slow queries and upgrades PHP, which speeds up uncached requests. For public pages, adding HTML edge caching through their CDN cuts TTFB for distant visitors. Field TTFB moves into the good range over the next month.
Reduce TTFB WordPress FAQ
What is a good TTFB for WordPress?
Google's guidance treats 0.8 seconds or less as good for real visitors at the 75th percentile.
Does a caching plugin reduce TTFB?
Yes, for cached pages. It's usually the biggest single TTFB improvement on hosts without server-level caching.
Why is TTFB slow only for some visitors?
Usually distance from your server, logged-in or cart pages that aren't cached, or busy periods on limited hosting.
Will a CDN reduce TTFB?
Only if it caches your HTML at the edge. A CDN for static files alone doesn't change the HTML page's TTFB.