Next.js Discord

Discord Forum

Do on-demand revalidation approaches also include time based revalidation by default?

Answered
Milkfish posted this in #help-forum
Open in Discord
MilkfishOP
👋 Hello! I'm looking at setting up some fetch requests to a CMS which would preferably remain cached indefinitely until we manually revalidate it (we've set up a route handler which our CMS hits when changes occur to ensure our pages remain up to date).

I was wondering whether any time based defaults are applied when you purely define a tag-based on-demand revalidation configuration (like the below):

const response = await fetch(url, {
  next: { tags: ['projects'] },
})
Answered by Ray
yes until you revalidate it
View full answer

4 Replies