CodeZettaInterview Hub

Next.js · Caching · Mid-Level · Scenario

How do you prevent caching of personalized pages?

Short Interview Answer

Use dynamic APIs (cookies/headers), `no-store`, and private cache headers; never put user HTML in shared full-route cache.

Detailed Explanation

Audit CDN behavior. Segment personalized islands. Prefer caching shared public fragments only.

Did you know this answer?