stale-while-revalidate

PerformanceDefined term

stale-while-revalidate, defined in RFC 5861, extends Cache-Control with a grace window: after a response's freshness lifetime expires, a cache may keep serving it for the stated number of seconds while it revalidates with the origin in the background.

The reader-visible effect is that repeat visits stay instant while content stays approximately fresh — latency is paid by the cache, not the user. CDNs and service workers implement the same pattern, and application frameworks borrow the name for identical data-fetching semantics.

Browse the glossary

Performance