最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

rendering - Is Next.js `useCache` needed when Partial Prerendering is activated? - Stack Overflow

programmeradmin3浏览0评论

In the Next.js docs, the section on useCache mentions that the useCache directive can be used alongside Partial Pre-Rendering:

If used alongside Partial Prerendering, segments that have use cache will be prerendered as part of the static HTML shell.

However, the section on Partial Pre-Rendering mentions nothing about needing to use useCache. In fact, that section, and the linked video, makes it sound like every component outside of a Suspense boundary automatically becomes static, i.e. pre-rendered, without the need for useCache.

Is useCache needed alongside partial pre-rendering, if so why?

发布评论

评论列表(0)

  1. 暂无评论