Skepra / Web recovery & resilience

Next.js self-hosted cache: validate deployment identity and revalidation separately.

A self-hosted Next.js release can serve a new build while cached data, deployment identity or a revalidation path remains unclear. Record each layer separately before treating the release as accepted.

Discuss the next maintenance decision

What the Next.js documentation establishes

Next.js documents self-hosting configuration, on-demand cache invalidation through revalidation and deploymentId as an identifier used for version-skew protection and cache busting during rolling deployments. These capabilities still need to be mapped to the deployed application and cache handler.

Separate three evidence rows

Record the deployed build or deployment ID, the cache and revalidation configuration, and the public response observed after release. A changed build identifier does not prove that every cached response was invalidated, and a fresh response does not prove that the intended deployment is serving every route.

Check the actual self-hosted boundary

Identify the Next.js version, App Router or Pages Router usage, runtime, reverse proxy, cache handler and deployment unit. If the application uses a custom cache handler or shared cache, record its owner and invalidation route. Unknown cache ownership should remain an open handoff item.

Use a bounded validation matrix

Choose one static response, one dynamically revalidated response and one route that must preserve its access boundary. Record the expected cache state, deployment identifier if exposed to the operator, response headers or body marker allowed by the application owner, and the time of observation. Do not copy cookies, tokens or private response data into a public report.

Handoff and limits

Close the release only when the build identity, invalidation method, representative route checks, rollback condition and remaining unknowns are recorded. This page does not claim that any reader deployment was inspected or that cache invalidation succeeded.