CDN Migration Checklist: How to Test Cache Behavior Before and After DNS Cutover
CDN migrationDNS cutoveredge deliverycache testingwebsite reliability

CDN Migration Checklist: How to Test Cache Behavior Before and After DNS Cutover

CCaching Website Editorial Team
2026-12-03
7 min read

Use this phased CDN migration checklist to test cache rules, DNS, TLS, origin access, performance, purge behavior, and rollback readiness.

A CDN migration is safer when cache behavior is tested before DNS changes, not discovered after traffic arrives. This checklist gives you a phased way to compare the old and new delivery paths, validate origin access, TLS, redirects, cache rules, compression, images, APIs, purge behavior, IPv4, IPv6, regional performance, logs, and rollback readiness. Use it for a CDN replacement, domain migration, infrastructure redesign, or recurring performance review.

Overview

Moving a website to a new CDN changes more than the DNS record. The new provider may interpret cache headers differently, use different cache keys, handle query strings in another way, or apply distinct defaults for compression, image transformation, redirects, and protocol support. A migration can therefore appear successful while quietly serving stale content, bypassing the cache, exposing an origin, or breaking an API request.

The safest approach is to treat the migration as a controlled comparison between two delivery paths:

  1. Document the current state. Record the existing CDN settings, DNS records, origin addresses, TLS configuration, cache rules, redirects, image behavior, purge process, and monitoring signals.
  2. Prepare the new path without changing public DNS. Configure the new CDN and test it through a temporary hostname, provider preview address, hosts-file override, or another method supported by your environment.
  3. Compare responses. Check headers, status codes, content, cache hits and misses, time to first byte, compression, and behavior from multiple networks and regions.
  4. Cut over with a rollback plan. Lowering DNS TTL in advance may reduce the time required to direct resolvers back, but it does not make DNS propagation instant or uniform. Keep the old CDN configured until the new path is proven stable.

Keep a comparison worksheet with columns for the old CDN, the new CDN, expected behavior, test result, owner, and follow-up action. This turns a subjective migration review into a repeatable checklist.

What to track

Origin access and TLS

Confirm that the new CDN can reach every required origin over the intended protocol and port. Test the origin firewall, allowlists, health checks, private networking, and connection limits. If the origin accepts traffic only from known CDN addresses, update those controls before cutover and verify that direct public access remains restricted where appropriate.

Check the complete TLS path: certificate coverage for every hostname, certificate renewal ownership, minimum protocol settings, origin certificate validation, and behavior for both the apex domain and subdomains. Test HTTP-to-HTTPS redirects and confirm that the CDN does not create a redirect loop when the origin sees a different scheme through a proxy.

DNS, hostnames, and protocols

List every record involved in delivery, including the main website, static asset hostnames, API endpoints, mail records, verification records, and any regional or legacy names. Change only the records intended for the CDN. A migration can fail when a broad DNS edit accidentally affects services that should remain on their existing providers.

Test IPv4 and IPv6 separately. A site may work over IPv4 while the IPv6 path points to an old provider, reaches an inaccessible origin, or uses different firewall rules. Also verify HTTP/2 or HTTP/3 behavior if those protocols are part of the intended configuration, without assuming that every client or network will use them.

Cache rules and headers

Compare the cache key and caching decision for representative URLs:

  • A public HTML page with a normal query string
  • A static JavaScript, CSS, font, or image asset
  • A URL with tracking parameters
  • A response with cookies or authorization headers
  • A deliberately uncacheable page
  • An API response that must remain private or short-lived

Record Cache-Control, ETag, Last-Modified, Age, and any provider-specific cache-status headers. Confirm whether the new CDN honors origin directives or overrides them with edge rules. Pay particular attention to query-string normalization, cookies, authorization, language headers, and device-based variations. A rule intended to improve cacheability can serve personalized or user-specific content if the cache key is too broad.

For WordPress, memberships, shopping carts, and other dynamic systems, test logged-in pages and transactional flows separately from public pages. Never assume that a successful homepage cache test proves that account, checkout, search, or API requests are safe to cache. The guidance in Caching Dynamic Websites and WordPress Caching Configuration can help with these cases.

Content, compression, and images

Compare the response body, content type, character encoding, and compression for HTML, CSS, JavaScript, JSON, fonts, and common image formats. Test large files and range requests if your site delivers downloads or media. Check that compression is not applied to already compressed formats in a way that adds overhead or causes unexpected client behavior.

If image optimization or resizing is enabled, test the original image URL, transformed variants, unsupported dimensions, format negotiation, and cache invalidation. Confirm that image URLs remain stable and that the new CDN does not produce a different result for different Accept headers without including the relevant variation in its cache logic.

Purge behavior and observability

Run a controlled content change and test the available purge methods: one URL, a path or prefix, a tag or surrogate key where supported, and a full purge only if it is operationally acceptable. Verify how long stale objects remain after a purge request and whether a purge response means “accepted” or “completed.” Document API credentials, rate limits, audit logs, and the person or system authorized to purge production content.

Make sure logs and metrics identify cache hits, misses, bypasses, errors, origin response time, bandwidth, status codes, and geographic or network patterns. If the new provider uses different field names or sampling behavior, update dashboards before cutover. For a broader cache review, see the Website Cache Audit Checklist.

Cadence and checkpoints

Use four checkpoints rather than one large test window.

Before configuration

Export or record the old CDN configuration. Capture DNS records, certificate details, cache rules, redirect logic, origin settings, purge workflows, and baseline measurements. Include a list of critical URLs and user journeys, not only the homepage.

During parallel testing

Test the new CDN without public cutover. Run cold-cache and warm-cache requests, then repeat from more than one region and network. Compare status codes, headers, response bodies, redirects, asset loading, API behavior, and origin logs. A test should include both a first request and a later request so you can distinguish a cache miss from a cache hit.

Immediately after DNS cutover

Monitor DNS answers, CDN logs, origin load, error rates, cache-hit behavior, TLS errors, and real user reports. Test from IPv4 and IPv6 networks where possible. Check the main domain, static assets, API calls, forms, login, search, checkout, and any externally integrated callback endpoints.

After stabilization

Repeat the comparison after caches have warmed and DNS responses have had time to update across the networks used by your audience. Review whether traffic is reaching the expected provider and whether the old CDN is receiving residual traffic. Do not delete the old configuration until the rollback window has passed and no dependent hostname or service has been overlooked.

How to interpret changes

A slower first request is not automatically a migration failure; it may be a normal cold-cache result. Compare like with like: the same URL, request headers, region, protocol, cache state, and origin conditions. Look for patterns across repeated requests rather than reacting to one sample.

A sudden increase in origin traffic usually indicates cache bypass, a changed cache key, a lower TTL, failed cache revalidation, or a rule that excludes responses unexpectedly. A high cache-hit rate is not sufficient if the wrong content is cached, so pair cache metrics with content verification and user-flow tests.

Different response headers can be acceptable when the semantics remain correct. Focus on whether private content is protected, public content receives the intended freshness, purges work, validators are honored, and errors are handled safely. If time to first byte worsens only in one region, investigate routing, IPv6, peering, origin geography, and provider points of presence rather than changing global cache rules immediately.

For stale content, trace each layer: browser cache, service worker, CDN, reverse proxy, application cache, and origin. The cache-not-updating troubleshooting guide and cache invalidation patterns guide provide useful follow-up checks.

When to revisit

Review this checklist before every CDN replacement, domain migration, major hosting move, cache-rule redesign, or origin architecture change. Revisit it on a monthly or quarterly cadence for sites where delivery behavior, APIs, traffic regions, or application releases change frequently. Also repeat targeted tests after changing TLS settings, DNS records, image processing, compression, personalization, or purge automation.

Keep the worksheet current by recording the date, configuration version, test locations, critical URLs, expected results, observed results, and unresolved risks. Update provider-specific dashboard steps and commands when the vendor changes its interface or API. DNS TTLs, cache limits, protocol support, pricing boundaries, and feature availability should be verified from the provider’s current documentation rather than copied indefinitely from an old migration plan.

Before the next cutover, make sure rollback is executable: identify the DNS records to restore, preserve the previous CDN configuration, confirm access to the DNS account, document the intended TTL settings, and define the symptoms that trigger reversal. Afterward, compare the new path with the baseline again. A CDN migration is complete only when availability, cache correctness, purge control, observability, and rollback readiness have all been demonstrated.

Related Topics

#CDN migration#DNS cutover#edge delivery#cache testing#website reliability
C

Caching Website Editorial Team

Senior SEO Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.