To reduce time to first byte (TTFB), find where the time goes, test the pages your CDN can’t cache, and fix what your platform lets you control, from hosting and caching to the redirects and integrations that run before the page starts to load.
TTFB is how long a browser waits for the first byte of a page after a shopper asks for it. This guide is for ecommerce and digital leaders who own a store’s performance and need to know what to ask their host, agency, or developers.
Server response time works differently on a store than on a blog. Carts, checkout, account pages, search, and filters go back to the server every time, so a fast homepage tells you little about the pages closest to revenue.
The short version
TTFB isn’t a Core Web Vital, but a slow one delays Largest Contentful Paint (LCP).
Test the pages a CDN can’t cache (cart, checkout, account, search, and filters), not just the homepage.
What you can change depends on your platform: hosted, self-hosted, or headless.
Redirects and request-time integrations add to TTFB. Client-side scripts don’t.
What TTFB measures and why it matters for your store
Time to first byte measures the time between a shopper starting to load a page and the first byte of the response arriving. web.dev’s definition breaks it into redirect time, service worker startup time (if there is one), the DNS lookup, connection and TLS negotiation, and the request itself, up to the moment the first byte comes back. A slow number can come from any of those steps, which is why finding the slow one comes before fixing anything.
The rough guide from web.dev is that 0.8 seconds or less is good and more than 1.8 seconds is poor. Anything in between needs improvement. Field tools like CrUX report the 75th percentile, the point where three out of four visits were as fast or faster. The thresholds are only a rough guide because a server-rendered page with a slightly higher TTFB can still paint sooner than a client-rendered page with a lower one, so the number gets weighed against how your site delivers its content.
TTFB isn’t a Core Web Vital, but it delays LCP
Core Web Vitals are LCP, INP, and CLS, and TTFB isn’t among them. web.dev says as much, adding that a site doesn’t need a good TTFB as long as the response isn’t holding back the metrics that count. The reason to care is order: TTFB comes before First Contentful Paint (FCP) and LCP, so a slow response pushes both back. For the fixes that belong to LCP itself, the Core Web Vitals section of our landing page optimization checklist is the place to start.
Slow responses mean Google crawls less of a large catalog
Google’s crawl budget documentation says the crawl capacity limit goes up when a site’s response times, including time to first byte, stay stable or improve, and goes down when the site slows down, so Google crawls less. The guidance is aimed at large sites: those with 1 million or more unique pages that change about weekly, or 10,000 or more pages that change daily. Google describes those numbers as a rough estimate and says sites without that profile don’t need the guide. If your catalog is that big, a slow origin costs you crawling. If it isn’t, this is background.
How to find where your TTFB is going
Start with measurement. There are two kinds, and they use different thresholds.
Field data vs. lab data (800 ms at p75 vs. 600 ms)
Field data comes from real visits. PageSpeed Insights and the Chrome User Experience Report (CrUX) report the 75th percentile over a 28-day window, and good is 800 ms or less.
Lab data comes from a test you run yourself. Chrome’s documentation says its document request latency insight flags a server response that takes more than 600 ms. That’s lower than the field number because TTFB also includes the DNS lookup and any redirects, so the server’s share of the 800 ms is smaller.
If you’ve seen “Reduce initial server response time” in an older Lighthouse report, that was the warning for slow server responses. Lighthouse 13 and later fold that check into the document request latency insight. When someone quotes a number, ask whether it’s the 600 ms lab line or the 800 ms field line.
A few tools cover most of this: PageSpeed Insights for field data, the Network tab in Chrome DevTools (look for “Waiting for server response”), curl from a terminal, and the Server-Timing header, which lets your developers see how much of the wait each step on the server accounts for.
Test the pages your CDN can’t cache (cart, checkout, account, search, filters)
A CDN stores copies of your pages and serves them from a location near the shopper. That works for pages that are the same for everyone. Carts, checkout, account pages, logged-in browsing, site search, and filter combinations nobody has loaded yet get built for each request, so they go to your origin server every time. They also sit closest to revenue.
Test them on purpose: load a cart with items in it, run a search, and apply a filter. A cached homepage will usually respond faster than any of these. If your search results are slow, our ecommerce site search best practices checklist says to fix speed first if a results page takes more than a couple of seconds to load on a phone over a cellular connection.
Three questions to bring to your developer or host:
What’s the 75th percentile TTFB on cart and checkout?
Which of these pages are cached at the edge, and which go to the origin?
Where does server time go on those pages? A Server-Timing header or an APM trace (a record of each step the server takes) will show it.
What you can change depends on your platform
The list of fixes is similar everywhere, but who can act on each one depends on how your store is built. The server, hosting, and CDN section below says which platform type can make those fixes.
Hosted platforms (Shopify, BigCommerce)
On a hosted platform such as Shopify or BigCommerce, the vendor runs the hosting and the CDN, so your levers are theme code, apps, and redirects. Shopify’s documentation says slow Liquid templates affect server response times, and the Shopify Theme Inspector for Chrome shows where Liquid render time goes. Render time in that tool isn’t the same as TTFB: Shopify notes that TTFB also includes overhead such as the time a request takes to reach its backend, which it expects to be under 100 ms for most users.
Self-hosted platforms (Magento, WooCommerce)
On a self-hosted platform such as Magento or WooCommerce, hosting, server configuration, caching layers, and the database are yours, or your host’s and agency’s. Most of the sections that follow apply directly. For Magento, Chrome’s stack-specific guidance is to use Magento’s Varnish integration.
Headless storefronts
On a headless storefront, the front end is separate from the commerce engine, so the levers are yours: edge caching, streaming responses, and API fan-out, where one page waits on several backend calls before it can respond. Our explainer on composable vs. headless vs. monolithic commerce covers how those architectures differ.
Whatever your platform, field data shows wide gaps. HTTP Archive’s Tech Report tracks the share of sites on each platform with good TTFB, meaning 800 ms or less at the 75th percentile. Here’s the share of sites with good TTFB for mobile visitors in October 2026.
Mobile sites with good TTFB, by platform
Platform | Sites with good TTFB, mobile, October 2026 |
|---|---|
Shopify | 85% |
BigCommerce | 66% |
Salesforce Commerce Cloud | 37% |
Magento | 24% |
WooCommerce | 13% |
These numbers cover Chrome users only, and HTTP Archive detects the platform from each site’s homepage. The gaps reflect hosting model, CDN use, and site size as well as the platform, so read the table as a pattern across thousands of sites, not as proof that one platform is faster than another.
Server, hosting, and CDN factors that affect TTFB
Time to first byte fixes at this layer come down to hosting and distance. web.dev says the host you choose matters a lot for TTFB in the field, and that visitors far from your origin server may still see high TTFB. A CDN helps by caching resources on servers physically closer to your shoppers, and CDN providers usually offer very fast DNS resolution too.
A CDN only speeds up responses it can cache, and Chrome’s documentation describes it as particularly effective when the document can be cached at the edge. An uncached store page still waits on the origin, so a CDN won’t fix a slow cart or checkout on its own.
Hosted platforms handle hosting and the CDN for you. On a self-hosted store, all of this is yours or your host’s. On a headless storefront, the edge layer is yours.
For the developers reading: a 103 Early Hints response counts as the first byte for TTFB, according to web.dev, which makes TTFB hard to compare across platforms that use it differently.
Caching strategies that reduce server response time
Caching means doing the work once and reusing the result. Full-page caching stores finished pages for anonymous visitors so the server doesn’t rebuild the same page for each one, and edge caching keeps those pages at the CDN. Server-side object caching holds the results of repeated lookups, such as product data, in memory. Database tuning, meaning faster queries and better indexes, speeds up whatever still has to be looked up.
The pages you tested earlier can’t be cached the same way, because they differ for each shopper. For those, cut the work the origin does per request: fewer backend calls, faster queries, and caching the parts of the page that don’t change from shopper to shopper.
Image compression and CSS or JavaScript minification help other metrics but not TTFB, since those files load in separate requests after the main document. Compressing the HTML document itself is a separate check in Chrome’s document request latency insight.
Redirects and request-time integrations that add to TTFB
Redirect time is part of TTFB, and each redirect sends the browser back across the network for another request. Chrome’s documentation says that extra trip can delay loading the page. On a store, common sources are market or geo redirects, http-to-https, www and non-www versions, and trailing slashes. Ad links can add hops too, because web.dev notes that cross-origin redirects are often used by ads and URL-shortening services, and each redirect adds another request.
Some work happens on the server before it can respond: personalization at the server or edge, A/B testing, geolocation, and calls to third-party APIs. Each adds to the wait. Sentry’s write-up of one developer’s homepage shows the mechanism. Taking two request-time Edge Functions that called third-party APIs out of the request path (one now runs at build time, the other became a static page rebuilt by a webhook) cut the p75 TTFB from 3.46 seconds to 704 ms. It’s a single personal site, so read it as an example of how request-time work adds up, not as a result to expect on your store.
Client-side scripts such as review widgets, chat, and tracking pixels load after the first byte, so they don’t change TTFB. They can affect LCP and INP, and the fixes for those belong in a Core Web Vitals audit.
Measuring TTFB improvement after infrastructure changes
After a change, re-test the same URLs with the same tool you used for your baseline, including the uncached pages. Lab results show up right away. Field data in CrUX covers a 28-day window, so a fix takes weeks to show up there, and a change that looks like it did nothing in week one hasn’t failed. Compare the 75th percentile, not the average, because averages smooth over the slow visits.
Record the baseline first. Our ecommerce replatforming checklist asks you to record a page speed baseline before a migration starts, and the same habit works for any infrastructure change.
The order of work is the same on every platform: find the slow pages, fix what your platform lets you change, and measure the same pages again. If you don’t control the server, the most useful output of this exercise is a short list of specific questions for whoever does.
Try Gladly AI right here
Shoppers still have questions once the page loads. Ask Gladly AI how it answers them.
Gladly AI answers sizing, fit, delivery, and returns questions on brand sites, recommends products, and lets shoppers check out in the same conversation, with a person one tap away.
Frequently asked questions
Recommended reading

The ecommerce landing page optimization checklist
Where to send ad traffic, how to match the page to the ad, and the speed, mobile, and CTA checks to run before every campaign launch.
By
Andrew Bennett

Ecommerce CRO checklist
43 conversion fixes across product pages, cart, checkout, and shopper conversations, each ranked by impact and effort so you know what to ship and what to test.

Ecommerce site search best practices, a practitioner's checklist
A practitioner's checklist for ecommerce site search: a 30-minute audit, autocomplete and typo fixes, zero-results triage, mobile search, and GA4 measurement.
By
Gladly Editorial




