The scenario: cached HTML references assets that no longer exist
A browser receives an older HTML document from a cache after a newer release has removed the static files that document references. The page can appear unstyled or fail to initialize even though the origin’s current home page looks healthy. A fresh-origin check and a cached-client journey are testing different release states.
The legacy Movo-X Cloudflare notes describe a historical problem involving long-lived HTML and removed build assets, followed by a more selective cache policy and retained versioned assets. This chapter explains the documented design and its acceptance implications. It does not change current cache rules, reproduce an outage or claim that every present route has been freshly audited.
Classify responses before choosing a cache lifetime
The reviewed policy separates public static or SEO output from application and dashboard HTML. That is the first important decision. A public content page and a personalized clinical screen may share a domain and framework while requiring different cache behaviour. A broad rule that makes every HTML response eligible for shared caching ignores that distinction.
For an implementation review, identify which response classes are truly public and independent of user state. Confirm how authorization, cookies, query parameters and locale influence the result. Do not assume that a URL name proves the response is public. A route that becomes personalized later needs its classification reviewed rather than inheriting an old cache exception indefinitely.
Coordinate the lifetime of HTML and its dependencies
Content-hashed assets make it possible for different releases to have distinguishable static files. That only helps a cached document if the assets it references remain available for the relevant cache and rollback window. The historical notes describe retaining earlier hashed chunks alongside a public-content caching strategy.
A useful acceptance model considers the complete dependency lifetime: HTML, styles, scripts, images and any runtime configuration required by the page. A deployment cleanup that removes an earlier asset too soon can invalidate a document that is still legitimately served by a downstream cache. The retention policy and the cache policy therefore need to be designed together, not owned as unrelated housekeeping tasks.
Do not equate a header with the effective edge behaviour
The inspected records distinguish origin cache headers from the edge configuration that makes selected public content cacheable. Cloudflare’s current documentation also explains that cache rules can modify or override origin behaviour. The exact effective result depends on the deployed configuration, so a review should inspect both policy and observed responses.
A single request is only an observation at a particular path, location and time. Test the intended response class and relevant variants. Preserve evidence of whether a response was fetched, stored, revalidated or bypassed in the environment under review. This chapter does not infer the current production rules from a repository file or from the presence of a caching header in a historical note.
Keep clinical data and private responses outside public-content assumptions
The documented policy explicitly distinguishes clinical application responses from the public-content exception. That separation should remain part of regression review whenever routing, authentication or rendering changes. A new application feature must not become shared content merely because it sits under a previously cached prefix.
An isolated negative test can use two synthetic accounts with different permitted data and inspect the relevant response behaviour. It should also test anonymous and authenticated requests where the route supports both. The goal is to validate the intended boundary without exposing real clinical information. A fast cache hit is not a successful outcome if the response should not have been shared.
Test a warm browser and an earlier document after release
A release check should include more than loading the latest document in a clean browser. Use a controlled earlier HTML version and confirm its required assets remain available through the accepted transition. Test a warm browser, a cold browser and the supported rollback path. Record which release each result belongs to.
These cases are especially useful when the failure appears only after a deployment and disappears during a fresh-origin investigation. The source notes provide the historical design context; the warm-cache cases here are a proposed acceptance plan. They were not newly executed against the clinical origin or a real patient session for this article.
Measure origin relief rather than assuming cost savings
Public-content caching can change the distribution of origin requests and transferred bytes. Whether that produces a useful reduction in cost or contention depends on the workload, cache effectiveness, provider billing and the application’s operating constraints. The historical notes contain estimates and observations, but this chapter does not reuse them as present-day measurements.
For a current assessment, define the period, route classes, request volume, transferred bytes and relevant invoice categories. Separate crawler traffic, customer journeys and authenticated work before drawing conclusions. Keep latency and error observations tied to their sampling conditions. A public page becoming cacheable does not by itself establish a specific saving or improved clinical workflow performance.
Trace the page-header change separately from retained build files
The July 7 source change adds a page matcher with a private/no-cache header and separately copies previous static files during recovery. A later inspected change adds a selected public SEO-path matcher with edge-cache directives and excludes those paths from the private-page matcher. The pinned November configuration retains that distinction with an expanded path list.
These are source declarations, not observed response headers or measured origin relief. No Caddy binary was available in this review and no configuration was reloaded. Framework headers, deployed configuration, edge rules, cookies and actual route content still need acceptance. A public SEO path must not be assumed safe for shared caching merely because its name is in a matcher.
Check the selected no-clobber copy and age pruning with generated files
Four generated-file checks exercise the retained commands directly on the current host. A previous unique chunk and a current chunk coexist after copying; current same-name bytes are not overwritten; the selected copied file retains its source modification time; and the age-pruning command removes a selected old file while a recent copied file remains.
This is a small filesystem mechanism experiment, not a Next.js build or deployment rehearsal. The source uses tolerant wrappers around these commands, while the fixture checks their successful direct execution. Disk, permission and partial-copy failures need separate acceptance. No application artifact, live directory or production process was touched.
Keep file age, release membership and browser dependency lifetime distinct
The inspected retention command selects files by modification age. It does not read the current build’s referenced-chunk graph or establish which earlier documents are still in use. Copying with preserved timestamps also means an old file’s age is not reset merely because it was retained during this release.
A separate generated-file observation reinforces that modification age cannot by itself certify current release membership; it is retained as an acceptance question outside the four passed-case aggregate. Verify artifact timestamps, the current dependency set, representative earlier HTML and actual rollback paths. Do not convert a source retention threshold into a promise that every open tab or rollback will work for that duration.
A practical cache-and-release review milestone
Deliver a response-class map, origin and edge policy review, static-asset retention plan and an isolated release-transition test. Include the failure modes, rollback dependencies and the owner responsible when a route’s public/private classification changes. Keep exact production access details in the private runbook.
That package gives the CTO a way to assess both reliability and operating value. Public content can be delivered efficiently while the clinic application retains its separate privacy and freshness requirements. The technical story is the coordination of cache state and release state, supported by evidence, not an unqualified claim that turning on a CDN makes every page safe or fast.
Additional implementation references
These provider references explain current implementation context. Historical Movo-X observations remain tied to the source records described above.
About this engineering series
Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.
Explore the Movo-X engineering series → · Related implementation experience →
Discuss a similar engineering problem
Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.
Discuss your project on WhatsApp ↗