All articles

The checkout you fixed can still be running on a customer’s phone

A fresh browser can miss an older service worker or a saved checkout response. Separate reusable page files from the private payment session for each purchase.

In this article

Your team fixes a checkout error, releases the change and completes a successful test. Later, a returning customer reports the original problem. A new browser window works; the phone they used yesterday still does not.

There may be more than one copy of the checkout in circulation. On a store using a service worker, code installed in the browser can control how pages fetch and reuse files. The merchant needs to know which copy reached the customer, not just which version is currently on the server.

Find which copy the customer receives

A service worker is not present on every store. Where the website or its software installs one, include it in the release investigation. Ask the web team whether the affected page is controlled by an earlier worker and whether the payment script came from its stored files, an ordinary browser cache or the hosting service.

MDN describes a default update sequence in which a new worker can be installed but wait while the previous version still controls open pages. Publishing a replacement therefore does not establish that every existing visit is using it. Different visitors can legitimately be at different points in the transition.

The developer can design other activation behavior, but immediate replacement is not automatically safer. A newly active worker may serve files to a page already running older code. The team must demonstrate that the resulting combination still understands the purchase, or offers a supported recovery before further payment activity.

Our open checkout release article follows that compatibility question. A service worker adds a particular delivery mechanism to investigate. It does not change the business requirement that an interrupted purchase retains an understandable history.

A reusable page must not reuse someone else’s purchase

Reusable images, styles and versioned application files can make checkout faster. A generated response containing a customer’s order, personal details or temporary payment session is a different kind of material. It must not become a common saved response handed to another visitor.

Consider a hypothetical optimization that stores the response from a session endpoint using only its URL. Two customers ask that address to prepare different purchases. If the cache serves the first saved response to the second customer, the server’s correct session creation logic may never run for that second request.

The mistake could appear as an expired payment view, a wrong purchase context or exposed customer information. The consequence depends on what the application put in the response and which checks still run. Do not assume a provider signature makes a response suitable for every order merely because it has not been altered.

Ask the developer to separate the public page structure from the protected, current purchase data. Cybersource’s troubleshooting guidance calls for a fresh session as the customer starts checkout, rather than a capture context cached across page loads. Caching a result cannot extend its validity or authorize its use for a different customer.

The remedy is not to disable every useful cache on the website. It is to identify the responses that must remain specific to the authorized purchase and prove that each delivery layer handles them accordingly.

One cache header does not govern every stored copy

HTTP caching instructions distinguish a response that may be stored privately from one that should not be stored. MDN also distinguishes no-cache, which permits storage but requires validation before ordinary reuse, from no-store. The names are easy to misread during an optimization change.

Those HTTP instructions do not settle every application storage decision. The browser’s explicit Cache API does not automatically honor HTTP caching headers. A service worker or other script using that API needs its own deliberate inclusion and exclusion rules. A developer must inspect those rules rather than assuming one server header protects every copied response.

Have the responsible team trace the actual path through the browser, service worker, host and any delivery network. Identify who owns each relevant rule, how an incorrect stored response is removed and how the next release avoids creating it again. Clearing one layer without locating the source is a temporary observation, not a durable correction.

Do not use an offline copy of a success screen as evidence of payment. If the network becomes unavailable after submission, retain the original attempt references and establish the provider result when possible. A visible confirmation saved earlier cannot answer what happened to the present purchase.

Test the visitor who has been here before

In the approved test environment, prepare a browser on the earlier release, leave its normal stored state in place and introduce the proposed change. Compare that returning visit with a fresh one. Test any supported offline or reconnection behavior without letting a simulated success trigger a real payment or fulfillment action.

Also use two separate customer sessions with visibly different test purchases. Confirm that each receives its own order details and permitted payment context. A single successful session cannot establish isolation between customers.

For a Trolleys custom connection, keep these observations with the checkout acceptance evidence. The website team owns its delivery and storage behavior; the account’s approved gateway flow still governs session handling and payment verification.

A good performance change serves reusable material quickly while keeping each purchase current and private. The merchant should be able to explain both, including to the customer whose phone remembers yesterday.