Next.js Discord

Discord Forum

A beginner question about revalidation

Unanswered
Asian paper wasp posted this in #help-forum
Open in Discord
Asian paper waspOP
I am trying to understand how revalidation works. I asked a question to ChatGPT, is it's answer correct?

1 Reply

I'd say so, yeah.

Usually, content served from an API is cached when it is retrieved.

When you revalidate, you remove the content from the cache so that the next time the content is retrieved, it's pulled from the original source rather than the cache.

Sometimes, you may hear this process referred to as "invalidating the cache".

When you're building your application, you should have control over when content is revalidated so you can do it in a flow that makes sense for you.