正在加载视频...

视频加载失败

Caching in Next.js 13

77,354 次观看 • 2 年前 •via X (Twitter)

10 条评论

David 的头像
David2 年前

What would you do in case of a headless CMS? We can safely assume that it won't be changed often (weeks or months bween updates) but if it happens, it needs to be updated instantly. Or better stick to using webhooks?

Alex Sidorenko 的头像
Alex Sidorenko2 年前

In this case, I'd keep it static and redeploy after content updates. Redeployment invalidates the cache. Alternatively, we can set an API route that revalidates a particular tag or path and trigger it after every content update.

Rodrigo González 的头像
Rodrigo González2 年前

What am I doing wrong?

Alex Sidorenko 的头像
Alex Sidorenko2 年前

Try deploying it to see how it works with the actual cache.

DegenSOL 的头像
DegenSOL2 年前

Awesome features. Loved it

Christoffer Bjelke 的头像
Christoffer Bjelke2 年前

Banger video as always Alex!

Arthur 的头像
Arthur2 年前

@jonathan_wilke didn’t you had some caching trouble ? Maybe here is something helpful

Lucas Rantzau 的头像
Lucas Rantzau2 年前

Loving this content. Removing complexity and making it digestible and understandable.

Kavin Desi Valli 的头像
Kavin Desi Valli2 年前

probably the easiest to understand caching explanation for nextjs i've seen

Abundance Ken-Dickson 的头像
Abundance Ken-Dickson2 年前

straight to the point and informative!

相关视频