A browser or content delivery network can reuse a stored HTTP response instead of fetching the full response again. That can improve speed and reduce origin traffic, but it also means an old or incorrectly shared response can persist. Check the cache rules, the response’s age and validation behavior, and the complete path from the browser through the CDN to the origin before changing settings.
You update a page, open it yourself and see the new version. A customer sees yesterday’s version. Both of you may be telling the truth. The question is which copy each request received, and from where.
One page, several possible copies
A browser can store responses locally. A content delivery network, or CDN, can hold copies in shared caches closer to users. An application may also keep its own data or use a service worker. Each layer has its own rules and can affect what a person sees.
When a request arrives, a cache may be able to reuse a suitable stored response. If it cannot, it may forward the request to another cache or the origin server. The exact route depends on the provider, configuration, request and response. A CDN’s dashboard label alone is not proof of what every user received.
HTTP caching is also different from DNS caching. DNS helps a client find where to connect; HTTP caching concerns responses such as HTML, images and other resources. The DNS timing guide explains the separate name-resolution problem. A DNS update does not automatically purge stored web pages, and an HTTP purge does not by itself update every DNS resolver.
What does a cache lifetime mean?
A server can send caching instructions in response headers. In a simplified example, a response with a freshness lifetime of 600 seconds may be reused while fresh, subject to its other directives and the cache’s applicable rules. The HTTP caching standard, RFC 9111, defines freshness, response age and cache-control directives.
Suppose a fictional shared cache stores a suitable response at noon with an initial freshness lifetime of ten minutes. If no earlier restrictions, overrides or invalidation apply, it might serve that stored response at 12:04 without fetching a new full copy from the origin. If the origin changed the content at 12:02, the visitor could still receive the earlier response at 12:04 under the assumed policy.
At 12:10, the simple freshness period has elapsed. What happens next depends on the actual directives, whether the cache can validate the response, whether stale reuse is permitted and the cache configuration. Do not treat ten minutes as a universal promise that every browser, CDN edge and application layer changes simultaneously.
Real age calculations account for more than the time since a particular cache received the response. Inspect the relevant Date, Age, Cache-Control and other headers and any provider-specific diagnostics. If a CDN has configured overrides, understand those settings too. The header you expected the origin to send is not necessarily the header the client actually received.
Read the important directives carefully
max-age indicates a freshness lifetime in seconds under the applicable HTTP rules. A shared-cache-specific directive such as s-maxage can affect shared caches differently. Configuration and other directives still matter; record the whole response rather than quoting one number out of context.
no-cache does not mean “never store.” In the ordinary response-directive sense, it requires successful validation before a stored response is reused to satisfy another request. A cache can keep a copy and ask whether it is still usable. Do not interpret that label as a guarantee that no copy exists anywhere.
no-store generally instructs compliant HTTP caches not to store the immediate request or response or reuse that response for another request. RFC 9111 specifies a limited interaction in which a cache implementing must-understand should ignore no-store when it understands and implements the response status code’s caching requirements. It is not a complete privacy or security guarantee: malicious or compromised caches might not obey it, and it does not automatically erase previously stored copies. Sensitive information still needs appropriate access controls, transport protection and careful handling.
private without a field-name argument tells a compliant shared cache not to store the response; a private cache may store it subject to applicable rules. The qualified form names specific header fields: a shared cache must not store those listed fields but may store the rest of the response without them, subject to the standard’s other constraints. Support for that qualified handling varies. Neither form is encryption, authentication or a guarantee that every browser feature and application cache is configured correctly. Personalized responses need deliberate design and end-to-end testing.
These descriptions are a starting point, not a substitute for the standard or the provider’s behavior. Directives can interact, and products can have explicit configuration that changes caching decisions. If the response contains special directives or a proxy applies overrides, investigate those exact rules.
A stored copy can ask whether it is still current
Instead of always downloading a complete response again, a cache can sometimes validate a stored copy using information such as an entity tag or modification time. If the server determines that the stored representation is still valid for the conditional request, it may respond with 304 Not Modified, allowing the cache to reuse its existing body under the rules.
That saves transferring the whole representation in suitable cases. It does not mean the cache guessed correctly, and a 304 is not a new page body. Validators, request headers, response headers and the selected representation all need to align. A broken validator or an incorrectly configured intermediate layer can produce confusing results.
Also distinguish an ordinary HTTP cache from browser navigation features or an application’s own offline behavior. A browser may restore a previous page snapshot during back navigation; a service worker can participate in requests according to its own code. Investigate the actual mechanism rather than assuming every stale-looking screen is explained by a CDN time-to-live.
Why new asset names can help
Suppose a fictional site publishes a stylesheet at /style.css and allows browsers to keep it fresh for a long period. The team changes the stylesheet but keeps the same URL. A browser with a still-fresh old copy may continue using it under the applicable policy.
An asset pipeline can instead publish a changed stylesheet under a new versioned or content-derived URL and update the page to reference that URL. The old and new URLs are different cache keys in ordinary use, so the new reference can fetch the new asset while the old one remains available for pages that still refer to it. The exact implementation depends on the application and cache configuration.
This approach also creates a release-order question. If the page points to a new asset before that asset is available at the destination, users can receive a broken page. If an older page still points to an old asset that has already been removed, that can break too. Coordinate publication and retention, and test the actual deployed combination.
Versioned filenames are not a substitute for protecting private data. A hard-to-guess URL is not an authorization policy, and a long-lived shared cache is inappropriate for content that should not be shared merely because its name contains a hash.
Personalized pages need a different review
An account page, customer-specific invoice or private search result has a different risk from a public logo. If a shared cache reuses a personalized response for the wrong request, the result can expose one person’s information to another. That is an access-control and data-handling problem, not merely a cosmetic stale-page problem.
Review authentication, cookies, response directives, cache-key construction and provider behavior together. Confirm that all paths returning personalized content are handled appropriately, including errors, redirects and different account states. Test with separate authorized test accounts and non-sensitive test data under a controlled plan. Never use real customer information as a convenient test fixture.
Headers such as Vary can tell compliant caches that selected request fields affect representation selection, but they are not a general guarantee that every personalized response is safe to share. A cache key that omits a relevant distinction or an override that ignores the intended policy can still cause harm. Get security and platform expertise for the actual implementation.
Investigate a stale page without guessing
First identify the exact URL, time, device, account state and expected content. Ask whether the issue affects the document itself, an image, a stylesheet or an API response. A page with new text and an old image may have two different cache histories.
Next inspect the response actually delivered at each relevant layer using supported tools. Note status, response headers, age, validators and any provider-specific cache status, with sensitive headers and user information kept out of shared records. Compare an appropriate controlled request through the public route with a verified origin response if authorized and safe to do so.
Then check the release: was the new file deployed to the correct environment? Does the HTML reference the intended asset version? Is an intermediate cache serving an older object? Does the affected browser have application or service-worker storage that needs investigation? Each answer narrows the problem; none should be assumed from a single screenshot.
A targeted purge or invalidation may be appropriate when supported by the provider and authorized for the affected object. Confirm its scope and observe the result. A broad purge can increase origin load and may still leave browser-side copies or application state untouched. It should not be the first explanation or an automatic substitute for understanding the path.
A fictional release check
Imagine a team publishes a corrected public article and a new image. The HTML has a short freshness policy; the image has a longer one. A test from one browser shows the correction while a second controlled browser shows the old image. The team records the exact image URL and response headers and finds that the page still references the old image URL.
In this invented case, purging the CDN alone would not correct the page’s reference to the wrong asset. The team updates the reference through its normal release process and verifies the deployed page and asset in both controlled browsers. The example does not establish that all real stale images have this cause or that two browser checks prove global propagation.
For an urgent public correction, decide who is responsible for communicating the current information while the technical team verifies the release. For a suspected privacy issue, restrict exposure and involve the appropriate security and incident-response owners immediately rather than casually sharing examples in a general chat.
Choose policy by content and risk
A public, versioned image that rarely changes can have different caching needs from a public article corrected frequently, a real-time inventory number or an authenticated account page. Balance speed, origin capacity, update behavior, privacy and the cost of an error. Document the intended policy for each class and verify the actual response after deployment.
Ask how quickly a correction needs to appear, whether an old copy is acceptable, how a resource is versioned and what can safely be shared. Identify the owner of invalidation and the procedure for confirming it. If the origin is unavailable, determine whether serving a stale public response is permitted and useful; do not assume that the same behavior is acceptable for private or time-sensitive content.
The relevant measurements are concrete: response times, origin requests, cache behavior, correct-version delivery and errors for the paths tested. An attractive hit-rate number is not success if customers receive outdated terms or someone else’s account data.
Questions for the next release
Which layers can store this response? How long is it fresh, and what happens when it becomes stale? Can it be validated? Is it public, private or personalized? Does the cache key distinguish every relevant representation? Are the page and its assets deployed together?
What evidence shows the correct version is live for the paths and locations tested? How will the team handle an urgent correction or suspected privacy problem? And which uncertainty remains after the test?
Caching is valuable because it lets a system reuse work. A good caching plan makes sure it is reusing the right work for the right person at the right time.
Explore Infinite Upside
For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.
Explore a related guide
Why does a DNS change appear at different times?