Why an Old Page Can Appear After a Site Move
Originally published on LabEx Blog . A site can move to a new server while a visitor still sees an old page at the same URL. That result is not enough to identify the cause. Two different caches can preserve two different clues: A DNS cache can reuse an older address for the site name. A browser cache can reuse an older HTTP response without making a new document request. The distinction matters…
When a website relocates to a new server, some users may still encounter the previous version of the site when accessing the same URL. This discrepancy is not sufficient to pinpoint the root cause. Two distinct cache systems can retain separate indicators: a DNS cache may retain an outdated address for the domain, while a browser cache might retain an older HTTP response without initiating a new document request. Understanding the difference is crucial when troubleshooting a migration.
To pinpoint the issue during a website migration, begin by examining the URL path and verifying whether the browser requested a fresh page. This guide adheres to the scenario presented in the LabEx video titled "Why Do I See the Old Page After a Site Moves?"
Consider a fictional example where "festival.example/schedule" was moved to a new server. One user sees the opening film at 7:00 PM, while another sees 8:00 PM from the same bookmark. During the move, the hostname and path can remain the same; however, the address returned for the hostname or the response a browser chooses to reuse may change.
The initial step is to determine if the browser connected to the anticipated server. DNS (Domain Name System) translates a domain name into an IP address. Resolvers commonly cache this response for a specified time-to-live (TTL). If a resolver cached the old answer before the migration and its TTL has not expired, a subsequent connection might still reach the outdated server.
This does not necessarily mean the DNS record is incorrect everywhere. Different resolvers might have varying TTLs, leading to different cached responses.
Assuming DNS resolves to the new address, a user may still observe the old schedule if the browser reuses a previously saved HTTP response. In this case, the browser might display a cached page instead of making a new document request. While DNS caching preserves an address, browser caching preserves a response. These are distinct layers, so clearing one cache does not necessarily resolve issues with the other.
To distinguish between the layers, perform a fresh request using the browser's Network panel while developer tools are open. Inspect the document request to determine whether the browser made a network request for the page and whether the response originated from the network or the browser cache. If possible, record this information and compare it with the expected address following the move.
Disabling the browser cache will only test the saved page layer and does not compel every DNS resolver to forget an answer. If the page remains outdated despite a verified network request, focus on inspecting the address and server response.
To gain a concise understanding of the issue, document the URL, the time, whether the page was obtained from the network or cache, and the address when available. Compare a fresh request with a subsequent visit. This method allows you to identify which specific piece of evidence has changed rather than conjecturing that every stale page is a DNS problem. It is essential to test one's own account, public pages, and access routes to ensure authorized inspection.
The LabEx video provides a step-by-step walkthrough of the decision points involved in this process. For practical DNS practice, the LabEx's DNS Service Administration course offers a Configuring a Caching Resolver module. This module enables users to compare cold and cached DNS queries and observe how a record's TTL impacts cached responses. Watch the full video: "Why Do I See the Old Page After a Site Moves?"
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to