On this page
What this issue is
TTFB is the time between a browser requesting a page and receiving the first byte of the reply. It includes DNS lookup, connecting, the secure handshake, and the time your server takes to build the page.
When your site runs on one server and has no CDN, every request travels to that server. A visitor in the same region gets a fast reply. A visitor on another continent pays extra round trips, and each one adds delay. Your own checks from your office may look fine while a whole region of customers sees a slow site.
- Visitor far awayClicks your ad from another continent
- Long network pathSeveral round trips to a single origin
- Origin builds pageNo edge copy to serve instead
- First byte arrives latePage starts rendering late
Without a CDN, distant visitors travel all the way to the origin for every page.
Why it costs you leads or sales
A slow first byte delays everything after it: images, forms and buttons all appear later. Visitors on paid traffic are the least patient, and some leave before the page shows. If you run ads in a region far from your server, you pay for clicks that load slowly.
It is easy to miss because the problem is invisible from where you work. Reports that average all visitors can hide one weak region.
Example: a site hosted in one EU data centre with no CDN. Numbers are illustrative, not measured.
How to check if your site has it
Test from more than one location
Use a public speed test that lets you pick the test location, such as WebPageTest, and run the same URL from at least two continents. Look at the TTFB figure for each.
Test the real landing page
Use the exact ad landing URL, including its query string, not just the homepage.
Check the response headers
Look for headers such as cf-cache-status, x-cache or age. If none exist, your HTML is probably not served from a CDN edge.
Repeat a few times
Run each test 3 times. A first slow run followed by fast ones points to an uncached page, not distance alone.
curl -o /dev/null -s -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nTLS: %{time_appconnect}s\nTTFB: %{time_starttransfer}s\n" https://example.com/landing-page/How to fix it
The goal is to answer visitors from a place near them. You can do that by caching your pages on a CDN, or by moving the origin. Caching is usually the cheaper and faster fix.
Find where your visitors are
Check your analytics for the countries that send ad traffic and orders. Rank them by value, not only by volume.
Put a CDN in front of the site
Use a CDN that proxies your domain, such as Cloudflare, Fastly, Bunny or your host's built-in CDN. Point your DNS at it following its setup guide.
Cache the HTML, not just images
Many CDNs cache only static files by default. Add a rule to cache HTML for pages that are the same for everyone, such as landing pages, and skip cart, checkout, account and form-submit URLs.
Let query strings through safely
Make sure ad parameters such as gclid and utm_ values do not stop the page being cached, and are not stripped before they reach the browser.
Consider moving the origin
If most of your buyers are in one region, host the origin there or pick a host with a data centre near them.
Turn on full-page caching
Use your host's page cache or a cache plugin so the server can return stored HTML quickly.
Connect a CDN
Add a CDN through your host or a plugin, and enable HTML caching for public pages. Exclude cart, checkout, my-account and wp-admin paths.
Know what is already included
Shopify serves stores through its own global CDN, so a region-only slowdown is more often caused by heavy apps or theme code than by distance.
Test with apps disabled
Compare TTFB with and without recently added apps, and remove ones that add slow server-side calls.
Check hosting
Webflow-hosted sites are delivered through a CDN. If you proxy through another service, check its cache rules are not forcing every request back to the origin.
Rely on built-in delivery
Wix serves sites through its own CDN. If one region is slow, test the page without heavy third-party embeds and contact Wix support with your test results.
Rely on built-in delivery
Squarespace includes a CDN. Slow regions are more likely caused by large scripts or embeds than by the origin, so test with them removed.
Send cache headers
Return Cache-Control with a s-maxage value on public HTML so a CDN is allowed to store it.
Add the CDN and a purge step
Put a CDN in front and purge changed URLs on each deploy so visitors never see old content.
location / {
add_header Cache-Control "public, max-age=0, s-maxage=300";
}No CDN
- Every request goes to one origin
- Distant visitors wait for several round trips
- Origin rebuilds the page each time
CDN caching HTML
- Nearest edge answers public pages
- Distant visitors get a short network path
- Origin handles only uncached requests
How to confirm it's fixed
- Re-run your multi-region test and compare TTFB with the earlier numbers
- Response headers show a cache hit (for example cf-cache-status: HIT or an age header) on the second request
- The ad landing URL with gclid and utm_ values is also served quickly
- Cart, checkout and form pages are not cached
- A test form submission and a test purchase path still work
How to prevent it happening again
- Re-test TTFB from each target region after every hosting, CDN or theme change
- Set a TTFB goal for each region that sends paid traffic
- Check cache rules when you add new landing pages or plugins
- Purge the cache on deploy so offers and prices stay current
- Review your analytics country list each quarter and add coverage for new markets
How FunnelGuard handles this
FunnelGuard detects this only partly. It runs your journeys from the EU and the US, so a page that is slow in one of those two regions can show up in the checks. It does not set a separate TTFB budget per region, so it will not raise a dedicated alert just because one region is slower than the other.
To cover the rest by hand, test other regions that matter to you with a public speed test that lets you choose the location. Compare the TTFB of the EU and US runs in your FunnelGuard results, and repeat a manual multi-region test after any hosting or CDN change. If a failure appears, FunnelGuard re-checks from a second region before it alerts you, which also helps you see whether the issue is regional.
Questions people ask
Why is my website fast in one country but slow in another?
Most likely your site is served from one origin server with no CDN. Visitors far from it need more network round trips for every request, so their first byte arrives later. A CDN that caches your pages near visitors usually fixes it.
What is a good TTFB?
There is no single rule, but many teams aim for well under 800 ms for the first byte. Compare each target region to that goal and to your fastest region, and look into any region that is far slower.
How do I test TTFB from different locations?
Use a speed test tool that lets you choose a test location, such as WebPageTest, and run your landing page from several continents. You can also run curl with the time_starttransfer option from servers in different regions.
Do I need a CDN if my visitors are all in one country?
If your server is in or near that country, you may not need one for speed. A CDN still helps absorb traffic spikes and serves images and files faster, and it matters as soon as you advertise in a new region.
Will a CDN fix slow TTFB on its own?
Only if it caches your HTML. A CDN that serves just images and scripts leaves the page request going to the origin, so TTFB stays slow. Enable HTML caching for public pages and exclude carts, checkouts and accounts.
Can ad parameters like gclid stop my page being cached?
Yes, some setups treat every unique URL as a separate page, so each ad click misses the cache. Configure your CDN or cache plugin to ignore tracking parameters when building the cache key, while still passing them to the browser.
Does FunnelGuard check TTFB by region?
Partly. FunnelGuard runs your journeys from the EU and the US, but it has no per-region TTFB budget. For other regions, test by hand with a multi-location speed test.
Related issues
- PRF-050TTFB over 800 msFix guide
- PRF-059No CDN for images and static filesFix guide
- PRF-054Cache busted by UTM/gclid query params so ad traffic is never cachedFix guide
- PRF-053Full-page cache disabled or bypassed (WordPress cache plugin off)Fix guide
- PRF-070DNS lookup slow or failing intermittentlyFix guide
- PRF-051TTFB spikes at certain times (cron, backups, traffic peaks)Fix guide