With cacheComponents enabled, we no longer use page-level exports. Instead, we use the 'use cache' directive and the 'cacheLife' profile to define our revalidation window.
Refresh to see the 'Loading' state trigger in your browser.
Unified ISR: Uses the 'use cache' directive paired with 'cacheLife' for granular, component-level revalidation.
Server sends finished HTML. Browser 'hydrates' it for interactivity.
Cold start. No cache exists yet.
Architectural Insights
Hover over headers to reveal
Infrastructure Lifecycle Data.
Use the timeline buttons at the top to simulate how headers evolve over time in a production environment.
In Next.js 16, revalidate is deprecated. The modern way is to use cacheLife profiles directly inside your cached scope.
Ideal for stock prices or live scores.
Perfect for weather or trending topics.
Best for blog posts or documentation.
| Profile Name | Stale After | Revalidate After | Max Age (Expire) |
|---|---|---|---|
| "seconds" | 1 second | 1 minute | 1 minute |
| "minutes" | 1 minute | 5 minutes | 14 days |
| "hours" | 1 hour | 1 day | 14 days |
| "days" | 1 day | 1 week | 14 days |
Unlike the page-level revalidate export, cacheLife allows you to set different TTLs for different components on the same page. You can have a Navbar cached for "weeks" and a News Feed cached for "seconds".
These products are cached using Unified ISR with a "seconds" profile.
Refresh after 30s. The 1st refresh triggers the background update, the 2nd shows it.Note: Granular caching is now managed inside the component itself.
The Essence Mascara Lash Princess is a popular mascara known for its volumizing and lengthening effects. Achieve dramatic lashes with this long-lasting and cruelty-free formula.
The Eyeshadow Palette with Mirror offers a versatile range of eyeshadow shades for creating stunning eye looks. With a built-in mirror, it's convenient for on-the-go makeup application.
The Powder Canister is a finely milled setting powder designed to set makeup and control shine. With a lightweight and translucent formula, it provides a smooth and matte finish.
The Red Lipstick is a classic and bold choice for adding a pop of color to your lips. With a creamy and pigmented formula, it provides a vibrant and long-lasting finish.
The Red Nail Polish offers a rich and glossy red hue for vibrant and polished nails. With a quick-drying formula, it provides a salon-quality finish at home.
CK One by Calvin Klein is a classic unisex fragrance, known for its fresh and clean scent. It's a versatile fragrance suitable for everyday wear.
Coco Noir by Chanel is an elegant and mysterious fragrance, featuring notes of grapefruit, rose, and sandalwood. Perfect for evening occasions.
J'adore by Dior is a luxurious and floral fragrance, known for its blend of ylang-ylang, rose, and jasmine. It embodies femininity and sophistication.