My Courses: https://www.alialaa.dev/courses
Support Me: http://buymeacoffee.com/alialaa
Follow me on X: https://x.com/alialaa
Follow me on Bluesky: https://bsky.app/profile/alialaa.dev
Cache Components is a new approach to rendering and caching in Next.js that provides fine-grained control over what gets cached and when, while ensuring a great user experience through Partial Prerendering (PPR).
Starter Repo: https://github.com/alialaa/git-cache-...
00:00:00 Introduction
00:00:14 Summary of Caching Without Cache Components (https://github.com/alialaa/git-cache-...)
00:10:55 Cache Components First Look (https://github.com/alialaa/git-cache-...)
00:15:43 Partial Pre-rendering, Static and Dynamic Components (https://github.com/alialaa/git-cache-...)
00:27:29:28 Server vs Client Cache & Cache Keys (https://github.com/alialaa/git-cache-...)
00:33:02 Product Page Example (https://github.com/alialaa/git-cache-...)
00:43:53 Remote Cache (https://github.com/alialaa/git-cache-...)
00:48:00 Private Cache (https://github.com/alialaa/git-cache-...)
00:54:16 cacheLife & revalidatePath (https://github.com/alialaa/git-cache-...)
01:01:58 cacheTag, revalidateTag & updateTag (https://github.com/alialaa/git-cache-...)