System Design · Senior · Question 32 of 75

How do you combine CDN caching of HTML with personalization (username, cart)?

Explanation

Partial Prerendering, Edge Side Includes or client-side loading: the static part is served instantly from the CDN, and personal fragments are filled in on request. A per-user cache kills CDN efficiency and risks leaks.

Further reading

Problem with a question

System Design · Senior · question 32

Test yourself

Take the System Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz