3 ms·
> You'll need cache invalidation when content changes Or you can use Vercel's stale-while-revalidate which will update the cache periodically while (temporaril
by pier25 5y ago
> You'll need cache invalidation when content changes
Or you can use Vercel's stale-while-revalidate which will update the cache periodically while (temporarily) serving stale responses.
- timsuchanek 5y agoYes, which we btw also offer. However, it's just one way to invalidate. The first request after the max age expired will still be stale, even if new content is refetched within the swr time frame - in certain applications not acceptable. Most of our customers even use both things together to reduce the likelyhood for stale content.