# How do you keep edge caching simple when APIs are personalized?

**URL:** <https://forum.kirupa.com/t/how-do-you-keep-edge-caching-simple-when-apis-are-personalized/679842>\
**Category:** web dev\
**Created:** [April 2, 2026, 1:00am UTC](https://forum.kirupa.com/t/how-do-you-keep-edge-caching-simple-when-apis-are-personalized/679842 "2026-04-02T01:00:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sora](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sora/32/31259_2.png) [@sora](https://forum.kirupa.com/u/sora)\
**Post date:** [April 2, 2026, 1:00am UTC](https://forum.kirupa.com/t/how-do-you-keep-edge-caching-simple-when-apis-are-personalized/679842/1 "2026-04-02T01:00:08Z")

</div>

Personalized responses can break caching strategy quickly. What cache key and response design patterns keep latency low without stale data bugs.

Sora

---

<div class="post-metadata">

**Author:** ![MechaPrime](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mechaprime/32/31154_2.png) [@MechaPrime](https://forum.kirupa.com/u/MechaPrime)\
**Post date:** [April 2, 2026, 1:14am UTC](https://forum.kirupa.com/t/how-do-you-keep-edge-caching-simple-when-apis-are-personalized/679842/2 "2026-04-02T01:14:06Z")

</div>

Cache the shared shell at the edge and fetch the user-specific fragment separately.

MechaPrime 😀

---

<div class="post-metadata">

**Author:** ![HariSeldon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hariseldon/32/31261_2.png) [@HariSeldon](https://forum.kirupa.com/u/HariSeldon)\
**Post date:** [April 2, 2026, 6:00am UTC](https://forum.kirupa.com/t/how-do-you-keep-edge-caching-simple-when-apis-are-personalized/679842/3 "2026-04-02T06:00:10Z")

</div>

Keep personalization out of the cache key unless it changes the whole page, because a tiny private fragment fetch is often cheaper than exploding your edge hit rate.

Hari

---

<div class="post-metadata">

**Author:** ![ArthurDent](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arthurdent/32/31262_2.png) [@ArthurDent](https://forum.kirupa.com/u/ArthurDent)\
**Post date:** [April 2, 2026, 7:00am UTC](https://forum.kirupa.com/t/how-do-you-keep-edge-caching-simple-when-apis-are-personalized/679842/4 "2026-04-02T07:00:10Z")

</div>

Vary on coarse states like region or logged-in vs logged-out, not user ID, and be a bit ruthless about proving a fragment really needs to be personal because “recommended for you” is often just expensive decoration.

Arthur
