A CDN change can improve one test while leaving real visitors slower, or even introduce new regional and device-specific problems. This field checklist shows how to measure Core Web Vitals before and after a CDN, caching, DNS, or routing change, connect results to cache and origin behavior, and establish a repeatable review schedule.
Overview
Changing a CDN is an infrastructure change, not a single speed setting. It can affect DNS resolution, TLS negotiation, edge selection, cache status, compression, image delivery, connection reuse, origin latency, and the way HTML is generated. Measuring only one Lighthouse run does not show whether the change helped your actual audience.
A reliable comparison uses two kinds of evidence:
- Lab measurements: controlled tests from a selected location, device profile, and network condition. These are useful for reproducing a problem and checking individual releases.
- Real-user measurements: field data collected from visitors over time. These reveal the experience across browsers, devices, connection types, countries, and cache states.
Record a baseline before changing the CDN, keep the page and content as consistent as possible, then compare equivalent URLs after propagation and cache warming. A CDN is performing its intended role only when the improvement is visible in the regions and page types that matter to your business.
For a repeatable tool workflow, combine browser performance tools with a synthetic testing service and your CDN or application observability data. The Lighthouse, PageSpeed Insights, and WebPageTest testing workflow can help standardize lab runs, while CDN logs and real-user monitoring provide operational context.
What to track
Core Web Vitals and supporting metrics
Track LCP, INP, and CLS as the primary user-experience metrics. Commonly used “good” thresholds are LCP at or below 2.5 seconds, INP at or below 200 milliseconds, and CLS at or below 0.1. Treat these thresholds as evaluation guidance rather than a promise that every visitor will have the same experience. Segment results by device, browser, connection, page type, and geography.
Track TTFB alongside the Core Web Vitals. TTFB is not itself a Core Web Vital, but it influences how quickly the browser can begin receiving the document and can affect the opportunity to achieve a good LCP. Separate time spent on DNS, connection setup, TLS, request handling, and response delivery when your tooling allows it.
- LCP: identify the LCP element, such as a hero image, heading, or text block. Record whether the delay comes from document response time, resource discovery, resource download, or rendering.
- INP: test interaction-heavy templates, including navigation menus, search, filters, forms, and account interfaces. A CDN may reduce network delay, but it will not fix long main-thread tasks in the browser.
- CLS: check whether fonts, images, advertisements, consent interfaces, or injected components change layout after the page begins rendering.
- TTFB: compare cache hits and misses, edge locations, origin response time, and dynamic versus static routes.
CDN and response signals
Performance results are easier to explain when each test is paired with delivery metadata. Capture the response headers and CDN log fields available in your platform, including:
- Cache status, such as hit, miss, bypass, expired, or revalidated.
- Age or freshness information, where exposed.
- Cache key inputs, including query strings, cookies, authorization, device variants, and language headers.
- Edge or point-of-presence identifier.
- Origin response time and total upstream time.
- Content encoding, transferred size, and content type.
- Response status, redirects, and cache-control headers.
- Cache purge and configuration-change timestamps.
Do not treat a high cache hit ratio as proof that the website is fast. A CDN can serve a large volume of small assets from cache while HTML remains slow, or it can cache the wrong variant. Review hit ratio by hostname, path, response type, and region. Your monthly CDN bandwidth review can also include these performance dimensions.
Lab versus real-user comparison
| Question | Lab testing | Real-user monitoring |
|---|---|---|
| Can the change be reproduced? | Yes, with a fixed URL, location, device, and run procedure. | Usually not exactly; conditions vary by visitor. |
| How quickly does it provide feedback? | Immediately after a configuration or release change. | After enough traffic has collected to represent the audience. |
| What does it reveal? | Waterfalls, request chains, resource timing, and controlled bottlenecks. | Actual experience by geography, device, browser, and connection. |
| What can it miss? | Unusual networks, regional routing, cache variation, and long-term regressions. | The exact request sequence and controlled cause of a single slow visit. |
Before-and-after measurement template
Use the same fields for both periods. Store the results in a spreadsheet, dashboard, or incident record:
- Date and time, including time zone
- CDN provider, configuration version, and relevant DNS record
- URL and page template
- Test region, device profile, browser, and network profile
- Run number and whether the request was a cold or warm cache test
- LCP, INP, CLS, TTFB, total load time, and transferred bytes
- LCP element and largest transferred resources
- Cache status, edge location, origin time, encoding, and status code
- Notes about releases, content changes, purges, traffic spikes, or origin incidents
Cadence and checkpoints
Before the change
Choose representative URLs rather than testing only the homepage. Include a content page, a landing page, a search or listing page, and any authenticated or transactional route that has distinct caching behavior. For ecommerce sites, do not cache personalized cart, checkout, or account responses without an explicit, tested design; the WooCommerce cache rules checklist covers useful exclusions and validation steps.
Run multiple lab tests at each selected location and record the variation. Capture response headers with a command-line request or browser network panel, and export a waterfall for the slowest representative run. Preserve the current real-user dashboard or baseline report before switching traffic.
Immediately after the change
Confirm DNS resolution, certificate coverage, redirects, hostnames, and origin connectivity before judging speed. Test a cache miss and a cache hit where the platform permits it. A newly deployed CDN may need time to populate, while a purge can temporarily increase origin requests. Do not compare a cold-cache result before the change with a warm-cache result afterward.
Repeat the same lab locations and profiles. Add regions that are important to your visitors, especially if traffic is distributed internationally. Check static assets, HTML, images, fonts, APIs, and error responses separately because they may use different rules.
After traffic has collected
Review real-user data after a meaningful observation period for your site. The exact period depends on traffic volume and how quickly your monitoring system aggregates data. Compare distributions or percentile views where available rather than relying on one average. Look for changes that persist across days and segments.
Schedule a monthly operational check for cache status, origin latency, top templates, and error rates. Run a deeper quarterly review after major releases, CDN configuration changes, DNS changes, origin migrations, or changes in audience geography.
How to interpret changes
Use the following troubleshooting sequence when the result is better, worse, or inconsistent.
- Confirm the test is comparable. Check the URL, content version, device, browser, region, network condition, and cache state. A different LCP image or a fresh deployment can invalidate a direct comparison.
- Check DNS and edge selection. A DNS change can alter the edge location or add lookup and connection time. Use a DNS performance test and compare the selected edge with the visitor’s region. See the guide to authoritative DNS performance for a structured approach.
- Inspect TTFB components. If edge processing is quick but origin time is high, investigate application work, database queries, uncached HTML, or a low cache lifetime. If connection setup is high, review routing, protocol support, and geographic placement.
- Verify cache rules. A miss, bypass, or unexpected variation can explain a slow document. Review cookies, query strings, authorization headers, cache-control headers, and purge activity. Be cautious when changing rules for personalized or transactional content.
- Inspect the LCP request. If TTFB improves but LCP does not, the bottleneck may be image size, preload behavior, render-blocking CSS, font loading, or a late-discovered resource. Review image formats and responsive variants using the CDN image optimization guide.
- Separate network gains from browser work. A CDN can reduce delivery time without improving INP if JavaScript still blocks the main thread. Likewise, CLS problems usually require stable dimensions, reserved space, or predictable component loading rather than a cache change.
- Check compression and transfer size. Confirm that text responses use an appropriate encoding and that images, scripts, and styles are not being served in unnecessarily large forms. Compression must be tested with the actual content type and client request.
When a change helps one region but hurts another, compare edge selection, origin distance, cache population, routing policy, and local assets. When lab results improve but field data does not, look for a segment mismatch, insufficient observation time, cache variance, or a change that benefits only the test device. When field data improves but lab results do not, confirm that the lab is testing the same page state and cache condition used by visitors.
When to revisit
Keep this checklist as a recurring performance review rather than a one-time migration document. Revisit the baseline monthly when the site changes frequently, and at least quarterly for a stable site. Repeat the full before-and-after process whenever you change CDN providers, edge caching rules, DNS routing, origin hosting, compression, image transformation, JavaScript delivery, or WordPress caching configuration.
Start an unscheduled review when a dashboard shows a Core Web Vitals regression, TTFB rises, cache hit ratio changes unexpectedly, origin utilization increases, or a particular country or device segment reports slower pages. Also review after traffic shifts, a major marketing campaign, a new personalization feature, or a large content release.
At each review, save the current results, note configuration and content changes, and identify one or two measurable actions. Purge only when necessary, document the reason, and measure the warm-cache state afterward. If the site uses managed caching solutions, request or export the same edge, cache, and origin fields so the review remains comparable across providers.
The practical goal is not to produce the lowest score in a single tool. It is to build a trustworthy record showing whether visitors receive the right content, from an appropriate edge, with acceptable response and rendering times. A consistent measurement template turns CDN performance testing into an operating habit: establish a baseline, change one meaningful variable, verify delivery signals, compare real-user outcomes, and revisit the evidence whenever the system or audience changes.