Technology & Testing More detail A2 · Formal specification Platform: Web

Stale-While-Revalidate

Stale-while-revalidate may show an allowed stale cache at once while checking for a fresh response in the background.

See how it works
You might call it SWRbackground revalidationserve stale then refresh

See how it works

Original worked exampleStale-While-Revalidate

Another example

A guide list opens from cache. A quiet check replaces it only when a newer response arrives.

Main parts

  1. 01Cached response
  2. 02Allowed stale window
  3. 03Immediate display
  4. 04Background validation
  5. 05Fresh replacement

Use it when

Use it for read-heavy screens where slightly old data is safe for a short, defined time.

Do not use it when

Do not serve stale permissions, payment status, or safety data when being old could cause harm.

Name used in code

stale cache -> serve now + revalidate -> fresh replace

Before you ship

Check the runtime and version, integration limits, dependencies and licenses, and platform support. Verify security, failure, speed, monitoring, deploy, support owner, upgrade path, and rollback.

Request you can copy

Outcome: Use or review Stale-While-Revalidate as a technical building block that the team can maintain. User context: A guide list opens from cache. A quiet check replaces it only when a newer response arrives. Technology or engineering concept: Stale-While-Revalidate. Why it fits: Use it for read-heavy screens where slightly old data is safe for a short, defined time. Do not use it when: Do not serve stale permissions, payment status, or safety data when being old could cause harm. Engineering fit: Define where it runs and which version to use. Set its job, interfaces, data flow, dependencies, supported systems, security, and speed limits. Explain how it fits the current stack. Lifecycle safeguards: Check dependency health and licenses. Add monitoring and a fallback. Name the upgrade owner. Do not add a second tool for the same job without a measured benefit. Acceptance criteria: A small integration proves the needed behavior. Test compatibility, security, failure, and performance. Document deploy, upgrade, support, and rollback steps. Evidence and limits (evidence boundary): A formal document may still be a draft, release candidate, or final version. Check its status and browser or platform support. Unknowns to confirm: Current stack, runtime and version rules, target systems, dependency owner, performance budget, support period, and migration limits.

Check this request

Review the current use of Stale-While-Revalidate. Definition: Stale-while-revalidate may show an allowed stale cache at once while checking for a fresh response in the background. Release checks: Check the runtime and version, integration limits, dependencies and licenses, and platform support. Verify security, failure, speed, monitoring, deploy, support owner, upgrade path, and rollback. Before changing code, report the evidence you found, gaps, severity, and the smallest safe fix.

A2
How official is this term?

Formal specification

A published, versioned formal specification defines this term for the listed technical scope.

A formal document may still be a draft, release candidate, or final version. Check its status and browser or platform support.

Scope
HTTP stale-while-revalidate extension
Document status
stable
Checked on
2026-07-30

Evidence sources & scope

Authority source + Term reference · IETF Independent Stream · stable HTTP Cache-Control Extensions for Stale Content — 3. The stale-while-revalidate Cache-Control Extension 3. The stale-while-revalidate Cache-Control Extension Scope: HTTP stale-while-revalidate and stale-if-error extensions; direct scope: 3. The stale-while-revalidate Cache-Control Extension Role here: Direct term reference Source covers: canonical name, definition, semantics, implementation Authority source · IETF Independent Stream · stable HTTP Cache-Control Extensions for Stale Content Scope: HTTP stale-while-revalidate and stale-if-error extensions Role here: Authority within stated scope Source covers: canonical name, definition, semantics, implementation

Copy it yourself

The browser could not copy this. Select the request below and copy it yourself.