Speed up the server's first reply
By Chris Hornak · Steps last checked · Part of the Swift Site Audit support pages
The short answer
TTFB, time to first byte, is how long a browser waits before your server starts sending the page. Google calls 0.8 seconds or less good and more than 1.8 seconds poor. Nothing on the page can show until it arrives. The biggest fix on most sites is caching: keep a ready-made copy of each page, so the server doesn't build it again for every visitor. On hosted builders like Shopify or Squarespace, the server isn't yours to change, so fix redirects and heavy add-ons instead.
Before a browser can show anything, it asks your server for the page and waits. That wait includes finding your server, connecting to it, any redirects, and the time the server takes to build the page.
| Wait for the first byte | What Google calls it |
|---|---|
| --- | --- |
| 0.8 seconds or less | Good |
| 0.8 to 1.8 seconds | Needs improvement |
| More than 1.8 seconds | Poor |
Google's PageSpeed test is stricter about the server's own part: it flags more than 0.6 seconds. WordPress's Site Health uses the same 0.6 seconds.
Our audit uses Google's numbers. It times one request to your home page, from the start until the first byte arrives.
What the audit found
The audit reads the page you tested. Find the line your report shows, then jump to its fix.
Your server took over 0.8 seconds to answer
Your report says: Response time · 1200ms to first byte — slower than Google's 0.8 s (single request)
The audit asked for your home page once and waited more than 0.8 seconds for the first byte. Over 1.8 seconds counts as poor, the same lines Google uses. One request can be unlucky. Some hosts put a quiet site to sleep, and the first visit wakes it up, which is called a cold start. Run the audit again two or three times. If the number stays high, the server really is slow.
Waiting (TTFB) 1.20 sWaiting (TTFB) 0.35 sFix: measure it yourself (see Check it worked), then turn on page caching or ask your host about a faster plan. The steps for your platform are below.
Google's test says the server is slow to answer
Your report says: Speed · The server is slow to answer
Google's PageSpeed test flags a server that takes more than 0.6 seconds to send the page. Newer versions name this check Document request latency. It also flags a page reached through redirects, and a page sent without text compression. The report names the time it would save.
Redirects 1 redirect
Server responded 1,900 ms
Compression noneRedirects none
Server responded 320 ms
Compression appliedFix: cache the page, link straight to the final address so no redirect runs first, and check that your server compresses its pages. See your platform below.
Make the change on your platform
Plain code shows first. Pick your platform and we remember it on every support page.
Plain code
Cache the page
A page that is the same for every visitor can be built once and served from a CDN, a network of servers near your visitors. Send a Cache-Control header so the CDN can keep it. Google says that only the first visitor then waits for your server.
Next.js
Pages that read cookies, headers or search params, or that set dynamic = 'force-dynamic', are built again on every visit. Make pages static where you can. Run next build: ○ marks a static page and ƒ a page built on each request.
On Vercel, Netlify and other serverless hosts, a function that has been idle can start slowly (a cold start). Static pages don't have this problem. Netlify doesn't cache function responses unless you send cache headers.
Find the slow step
Add a Server-Timing header to see which part of your server's work takes longest, such as a database query.
Source: web.dev: Optimize Time to First Byte · Next.js: Caching · Netlify: Caching overview · Vercel: Improve function cold start performance
WordPress
Good to know: WordPress builds each page with PHP and a database on every visit, unless a cache keeps a ready copy. WordPress says a caching plugin "can improve performance several hundred times over for fairly static pages."
Check first
Go to Tools › Site Health. Look for the page cache check. It loads your home page three times and reports one of these:
- Page cache is detected and the server response time is good
- Page cache is not detected but the server response time is OK
- Page cache is not detected and the server response time is slow
- Page cache is detected but the server response time is still slow
WordPress counts 600 ms as good. The same screen tells you if your PHP version is old.
Fix
- Turn on page caching. Many hosts have it built in. Ask your host first, or install one caching plugin.
- Update PHP in your host's control panel. WordPress recommends version 8.3 or newer.
- Remove plugins you don't use. Google names the number and quality of plugins, and the theme, as causes of slow replies.
- Still slow? On shared hosting you can't change much. A better plan or host is the real fix.
Using Cloudflare? It doesn't cache your pages' HTML unless you add a rule for it.
Source: WordPress: Optimization · WordPress: Requirements · WordPress code: Site Health page cache check · Cloudflare: Default cache behavior
Squarespace
Good to know: Squarespace runs the server. You can't change its speed or caching.
What you can change, from Squarespace's help on slow sites:
- Redirects. Check the URL Mappings panel. Remove old redirects you don't need, and link straight to the final address.
- Custom code. Embeds, code injection and custom CSS can slow the page. Remove what you no longer use.
A single slow reading is often a one-off. Run the audit again before you change anything.
Shopify
Good to know: Shopify runs the server and a worldwide CDN (run by Cloudflare). There is no cache or server setting for you to change.
What Shopify suggests you control:
- Use a fast, current theme, such as one of Shopify's Online Store 2.0 themes.
- Remove apps and tracking tags you don't use.
- Use fewer sections per template, and split long collections into pages.
Run the audit again first. A single slow reading is often a one-off.
Wix
Good to know: Wix caches each page on its CDN the first time someone visits it, and clears the cache when you publish. Some pages are never cached: pages seen by logged in members, site search results and password protected pages.
Caching is on by default. To check one page:
- Open Pages & Menu (Wix Editor) or Pages (Wix Studio).
- Hover the page, open More Actions › Settings › Advanced Settings.
- If Manually control caching for this page is on and set to Never, the page is built again for every visit. Turn the manual setting off unless the page changes all the time.
Webflow
Good to know: Webflow serves your site from a CDN and caches pages when you publish. You can't change the server or its caching.
A slow reading on Webflow is often a one-off. Run the audit again. If it stays slow, check for redirects between your domain's versions, and trim third party scripts (load them with async or defer).
Framer
Good to know: Framer serves your site from a worldwide CDN. It builds its most visited pages when you publish. Less visited pages are built on the first request, then cached. You can't change the server.
Run the audit again. A page few people visit may have been built just for that first request.
HubSpot
Good to know: HubSpot caches pages on its CDN and builds them ahead of time (prerendering), with no setup. A page that changes for each visitor can't be prerendered, so it is built on every request.
What stops prerendering, from HubSpot's developer docs: personal content such as contact details, cookies or the query string in the template (contact, request.cookies, request.query), personalization_token(), today(), and adaptive tests.
To check a page:
- Add
?hsDebugOnly=trueto its address. HubSpot shows what blocks prerendering. - Remove personal content you don't need from the template, or move it to a page that needs it.
Source: HubSpot Developers: Prerendering · HubSpot Developers: Performance overview
Payload or Sanity
Payload
Good to know: if your site asks Payload for content on every visit, every visitor waits for that round trip. Ask your developer to cache the content and build pages ahead of time, then refresh them when you publish. See the Code tab.
Source: Next.js: Caching
Sanity
Good to know: if your site asks Sanity for content on every visit, every visitor waits for that round trip. Sanity's API CDN (useCdn: true) answers faster from a cache. Its live API always has the newest content but is slower. Ask your developer which your pages use, and whether pages can be built ahead of time. See the Code tab.
Source: Sanity: API CDN · Next.js: Caching
Check it worked
- In Chrome, open your page, then open DevTools and the Network panel. Reload, click the first request (your page), and open the Timing tab. Waiting (TTFB) is the server's wait. Try it a few times.
- In PageSpeed Insights, look for Time to First Byte in the real visitor data at the top, if your site has enough visitors. It covers the last 28 days, so changes show slowly.
- Run the Swift Site Audit again. The Response time line should pass.
Common mistakes
- Trusting one reading. One slow request can be a cold start, and one fast one can be luck. Measure a few times.
- Adding a CDN and stopping there. Cloudflare doesn't cache your pages' HTML by default. The page still comes from your server until you add a rule.
- Redirect chains.
http://tohttps://towwwis two waits before the page even starts. Link straight to the final address. See Send every address to one site. - Chasing numbers from tool vendors. Google's target is 0.8 seconds. Tighter targets you read online are not Google's.
Fix it yourself, or have us do it
Related
- Send every address to one site: redirects add to the wait
- How to audit your website like a buyer would: why a slow first screen loses buyers
Sources
Official documentation only. Each link was opened and read on December 5, 2026.


