Blog / Technical SEO /
What to inspect when HTML responses contain stale content
You update the headline. You preview it. You publish it. Then a colleague messages: “Still showing the old one.”
Cue the frantic refreshing.
The stale HTML could be coming from the browser, the CDN, the server or the application. And if you clear every cache at once, the problem might vanish without you ever learning where it lived. It’ll be back.
Start by reproducing the issue and identifying which response is old. Keep the test narrow, record the conditions and trace the content through the layers that serve the page.
Confirm the observed version
Record the URL, time, browser, device and the change you expected to see. Open the page in a clean session or a second browser to check whether the issue is local. Compare the visible page with the current CMS content and inspect the response source when practical.
Check whether the stale content appears in HTML, a rendered component, an API response or only a browser cache. If the HTML source has the new text but the visible page does not, investigate client-side rendering or service workers rather than assuming the server returned the old page.
Use a harmless content marker or a known approved change to make the version easier to identify. Avoid using confidential draft text in a public test. Note whether a hard refresh, new session or query parameter changes the result. But a cache-busting parameter isn’t a permanent fix, and I don’t let anyone treat it as one.
Trace caching layers
A page may pass through browser cache, service worker, application cache, hosting cache and CDN. Identify which layers exist and which headers indicate a cached response. Compare the response from the origin and edge if the hosting setup allows it. Look for cache status headers, age values and relevant timestamps.
Check whether the content management system invalidates the right cache after publication. A purge rule may clear the homepage but miss a page path, or one template may use a different cache policy. Review the site’s configuration and recent changes before purging broadly. When I pick this up on a client site, the CDN’s purge rules are one of the first places I look.
If a CDN or cache is involved, use its approved purge or revalidation process. Record what was cleared and when. If the old page disappears after a purge, that is evidence about the serving path, but still investigate why the update did not invalidate it automatically.
Inspect application and page dependencies
Check whether the HTML response is built from cached fragments, a database query or an external API. A section may remain stale even when the rest of the page updates. Review the relevant application logs or CMS state through an approved process. Do not export private content unnecessarily.
Look at redirects and variants too. The editor may have updated one URL while visitors reach a different canonical, locale, hostname or trailing-slash version. Compare the final URL and the response body. Verify that the published page, not a preview route, is being checked.
If JavaScript replaces part of the page, inspect the network request that supplies it. A failed or cached API response can make the visible content differ from the HTML source. Document which component supplies the stale text so the correct owner can investigate it.
Fix the cause and verify it
Make a targeted change at the layer responsible: adjust cache invalidation, correct a route, update a stale fragment or fix the client-side data request. Avoid disabling every cache unless that is an approved temporary diagnostic step. Broad changes can affect performance or user-specific pages.
After the fix, publish a harmless update and check the same URL from a clean session. Confirm that visitors see the intended version and that other page types still behave correctly. Record the test, layer changed and any follow-up monitoring.
Use a controlled comparison
Choose one URL and one known content change, then compare the CMS value, preview, origin response and public response in a repeatable order. If possible, ask another person to confirm the visible result from a clean session. Avoid changing cache settings, content and routing simultaneously; that can make the symptom disappear without showing which layer was responsible.
Record whether the response varies by device, cookie, login state or region. A site may intentionally serve different content to editors and visitors, or cache public pages separately from personalised ones. Make sure the comparison uses the same state before interpreting a difference as stale content.
If the page is part of a campaign or critical service, tell the owner what visitors currently see and provide a safe temporary route if one exists. Do not promise a repair time until the responsible layer and dependency are understood.
Preserve an incident timeline
For a recurring problem, keep a timeline of the edit, publish event, cache invalidation, first stale observation and recovery. Include the relevant response headers or status where useful. This can reveal whether the delay is consistently tied to one layer or whether different page types behave differently.
Tell the content owner what is known and what remains under investigation. If visitors are seeing old pricing, dates or instructions, assess the impact with the responsible business owner and provide a safe correction route. Don’t update a second copy of the content until you know which system is authoritative. I’ve learned to ask “where does this text actually live?” before touching anything.
Avoid exposing private information during diagnosis
When reproducing a page issue, use a public page or a safe test account where possible. Do not paste private customer content into a public support request merely to demonstrate a stale response. If the issue affects a logged-in or personalised page, describe the state and share evidence through the authorised secure channel.
If the stale response contains confidential information that should no longer be public, escalate promptly to the site owner and follow the organisation’s incident procedure. A cache purge may be an immediate containment step, but the team should still establish the source and confirm the content is no longer served.
Related reading
- Finding pages served with unexpected content types
- A field guide to content hidden behind interactive controls
- How to distinguish a template defect from a page-level problem
Stale content needs a traceable diagnosis, not an endless round of refreshes. Next time it happens, check the CMS, the origin and the public response in that order, and write down where the old text first appears. Which layer do you think it’ll be on your site?