Next.js Discord

Discord Forum

Different caching strategy using unstable cache

Unanswered
Grand Basset Griffon Vendéen posted this in #help-forum
Open in Discord
Grand Basset Griffon VendéenOP
Hello, the way unstable cache works now is - after the data is stale, serve the stale data and re-validate in the background for future requests.
For my use case I need it to essentially server fetch and server fresh data if the re-validation time has expired.

Is there a way to achieve this behaviour with the unstable cache?

0 Replies