Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 638 Bytes

File metadata and controls

13 lines (8 loc) · 638 Bytes
@opennextjs/aws minor

Add support for stale-while-revalidate in revalidateTag

Introduces a new methods in the tag cache (hasBeenStale, optional), both for the original and the next mode tag cache, mandatory to make swr work.

It also introduces a RequestCache utils that can be used to cache things scoped to a request (stored in the OpenNext internal AsyncLocalStorage context)

BREAKING CHANGE

writeTags for the tag cache signature has changed to writeTags(tags: NextModeTagCacheWriteInput[]): Promise<void>; for Next mode, and writeTags(tags: OriginalTagCacheWriteInput[]): Promise<void>; for the original mode.