SWR Stale While Revalidate

• 1 min read

TIL the details of this concept popularized by the HTTP RFC 5861.

The principle is:

  • Get the data from cache (stale status)
  • Send a request to revalidate the data
  • Reconcile the view with the new data

There’s a React component and also a Vue component for that behaviour.