Skip to content
Discussion options

You must be logged in to vote

The way to think about this with Cache Components, is that pages are no longer either static or dynamic, they can be both.

If a page is not accessing dynamic data (fetch, remote db queries, async file system reads), runtime data (cookies, searchParams, etc), or non-deterministic operations (Math.random or Date access), then it will complete its rendering, and be a fully static page. You wouldn't need to add a caching directive at all.

This is the static shell, the static output (contribution) for this page, and in the case above, it is the entire page. This would page have zero fallbacks for dynamic content, (it contributes with zero dynamic content).

The so called dynamic data, may be ca…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@yusifaliyevpro
Comment options

@yusifaliyevpro
Comment options

Answer selected by yusifaliyevpro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants