Interview practice question
Caching a mostly-static page with personal bits
System Design · Caching · Intermediate
Your homepage is the same for everyone except the header, which shows the user's name and cart count. How can you still cache it on the CDN?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Cache the shared page at the CDN.
- Load personal parts client-side via API.
- Or edge-side includes.
- Personal API not publicly cached.
- Huge reduction in origin load.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.