Re:Show HN: SWR(stale while revalidate) library for JavaScri...
by quickthrower2 on Wednesday September 08, 2021 @06:51PM
(#28464050)
What is SWR for the uninitiated?
[ Parent
| on HN ]
Re:Show HN: SWR(stale while revalidate) library for JavaScri...
by droyson on Wednesday September 08, 2021 @10:55PM
(#28465698)
The name “SWR” is derived from stale-while-revalidate, a HTTP cache invalidation strategy popularized by HTTP RFC 5861 (https://tools.ietf.org/html/rfc5861). SWR is a strategy to first return the data from cache (stale), then send the fetch request (revalidate), and finally come with the up-to-date data.