CodeZettaInterview Hub

Next.js · Authentication · Mid-Level · Scenario

What is the risk of caching authenticated RSC payloads?

Short Interview Answer

User A could receive User B's data if personalized responses are stored in shared caches.

Detailed Explanation

Mark dynamic, use private cache, vary by cookie carefully, and test with two sessions. This is a critical security interview topic.

Interview Tip

Mention cache poisoning / cross-user leaks.

Did you know this answer?