SEO + AEO on AutopilotFrom the team at Stackmatix
The Growth Library

Separate Service Worker Staleness From the Current Server Page

Compare an installed service worker, clean browser and current HTTP response to find stale marketing HTML without breaking approved offline behavior.

If returning visitors see old marketing content while a normal HTTP request is current, inspect the browser’s service worker before purging the server again. A worker can intercept requests in its scope and supply a cached response. The network endpoint and the controlled browser may therefore show different approved revisions.

Build a controlled comparison among a clean browser profile, a profile with the installed worker, the direct server response and the relevant Cache Storage entry. Record the worker version and lifecycle state. A single hard refresh is not enough evidence to explain the discrepancy.

The edge/origin worksheet traces server delivery. This procedure adds the client interception layer that can remain after the server and CDN agree.

Identify the actual interception path

MDN’s service worker guide describes fetch handling, custom responses and cached resources. Inspect the registered worker’s scope, active script and fetch strategy. Do not assume the site has a worker simply because it behaves like an application.

Use the browser’s developer tools to identify whether the document came through a worker and which cached object was returned. Capture the request URL, page revision and worker state. A cache named current is a label, not proof of the latest approved content.

Keep HTTP cache, Cache Storage and application state distinct. Clearing one does not necessarily clear the others. Record what each diagnostic action changes so a successful refresh does not erase the evidence of the original failure.

Use a state matrix that preserves the old client

Create four rows: direct HTTP without browser interception, clean browser without an existing registration, returning controlled browser and returning browser after the approved update. Use the same public URL and release. Preserve normal relevant preferences without copying private session tokens into the ticket.

For each row, record active worker, waiting worker, document source, returned content revision and next-step behavior. If a developer-tool bypass changes the outcome, label it as a diagnostic bypass in that test environment. It does not prove ordinary visitors received the fix.

Do not unregister workers across real users as the first solution. A site may rely on offline files or stored work. Establish the affected public route family and involve the application owner before changing lifecycle behavior or cache cleanup.

Work through a fictional stale plan explanation

Imagine a fictional product site whose approved revision B adds a limitation to a plan explanation. A direct request returns B, and a clean browser also receives B. An older controlled browser receives revision A from a cache-first worker. The old text lacks the limitation.

The comparison supports a client-cache diagnosis for that tested state. It does not establish how many visitors are affected or whether search systems saw A. Preserve the worker version and cached document before changing either.

A new worker is installed but waiting. MDN describes how an existing active version can keep controlling its clients while the replacement waits. The presence of the new script on the server therefore does not mean the returning page is already controlled by it.

The owner chooses an update and cache strategy that fits the application. The acceptance test requires the normal returning-client path to reach B under that strategy, while approved offline behavior remains intact. A developer manually clearing storage is useful for diagnosis but does not satisfy that acceptance condition.

Choose the smallest content strategy change

A public marketing document may warrant a different fetch strategy from an offline application shell. Decide how stale content is allowed to become and what should happen when the network fails. Do not implement a universal network-first or cache-first rule without that product decision.

Give cached revisions explicit ownership and cleanup rules. Avoid deleting caches still required by an active client. MDN discusses activation and old-cache cleanup, but the timing must fit the actual lifecycle and application dependencies.

Treat skipWaiting and immediate takeover as deliberate engineering choices. Forcing a new worker into an old page can create a mixed-version experience. Verify compatibility instead of adding lifecycle calls merely to make a test refresh appear current.

Use the public variant parity review to compare material promises across the tested states. The problem is more consequential when a stale version changes eligibility or instructions rather than a decorative label.

Verify ordinary navigation and recovery

Test an existing tab, a newly opened tab, a closed-and-reopened browser and the application’s normal update mechanism where relevant. Confirm which worker controls each client. Record any state that remains pending rather than claiming instant replacement everywhere.

Check internal links and downloaded resources alongside the page text. A new document can reference assets or instructions whose cache policy still serves an old revision. The destination promise review helps verify that the next step remains coherent.

Preserve offline failure behavior if it is part of the approved product. The user should receive a truthful unavailable or stale-state explanation, not an old plan promise presented as current indefinitely.

Keep the cleanup evidence separate

Record which cache names were removed, when and under which worker version. A cache cleanup acknowledgement does not demonstrate that an already controlled tab changed its displayed document. Retest that client explicitly.

Close the client defect separately from search observations

The closure record needs the original controlled state, current server evidence, responsible worker code, approved change and ordinary-client retest. Use the audit handoff to assign the implementation and its reviewer.

Do not infer crawler behavior from the returning browser. A worker-specific client failure and an old search citation can coexist without one proving the cause of the other. Record downstream search observations separately.

Close when the intended client states receive the approved representation under the documented update policy. Keep any unsupported or untested state visible. That is a concrete result even when no traffic or ranking movement has been measured.

Sources

Matt Pru

Co-founder and CEO of Stackmatix. Writing about growth, customer acquisition, and the decisions behind useful marketing. Connect on LinkedIn.

Developed with AI assistance under Matt's editorial direction. Our Editorial Approach