wordfor

stale-while-revalidate

noun

Frontend

  1. Serving cached data immediately while fetching a fresh copy in the background and swapping it in when it arrives. The inbox renders last session's messages instantly, then merges new ones a moment later.

In plain words

  • show old data while fetching new data
  • load instantly from cache then update
  • cache it but keep it fresh

See also perceived latency cache invalidation optimistic UI

Find similar words