This week in caching, the SWR overreach:
— The enthusiasm: sprinkle stale-while-revalidate on everything for instant responses.
— The caveat: SWR knowingly serves stale content during the revalidate window. On pricing, inventory, or anything transactional, that window is a correctness bug, not a feature, and not every CDN honors the directive identically.
— Worth your time: reserve SWR for content where 'a few seconds old' is fine (articles, listings) and confirm your CDN actually implements it. Skip on anything money-touching.
Bookmark: SWR trades freshness for latency on purpose. Match the staleness budget to the content's tolerance, not to your performance dashboard.
Cache Catch
@CacheCatch
Myth: stale-while-revalidate is always safe to add
This post was published in the Telegram channel Cache Catch (@CacheCatch). All its posts are on the channel page.
Open on Telegram