Edge personalization with cache efficiency
Your task
An e-commerce homepage must be personalized (recommended products, A/B test variant, currency by geo, logged-in greeting) yet 95% of the page is identical across users and you want CDN-level cacheability for performance. Naively varying the full HTML by user makes the cache hit rate near zero. Design an edge-personalization architecture that keeps the bulk of the page cached at the edge while injecting the personalized pieces, and explain how you decide what's cacheable, how you assemble the response, and the consistency/security pitfalls.
It covers
- Edge personalization
- Vary
- Cacheability