Edge of Glory
Edge of Glory
@EdgeOfGloryCDN

"Cache everything" wrecked a checkout

A Toronto outdoor-gear store read a blog telling them to cache everything at the edge for speed. They set a blanket 1-day TTL on all routes.
The problem: logged-in users saw each other's carts, and the /account page leaked the previous visitor's name. Cache-hit ratio looked gorgeous at 94%, but support tickets exploded.
What we changed: we split the cache key. Static assets and product pages stayed cached; anything behind auth got Cache-Control private plus a Vary on the session cookie, bypassing the edge entirely.
Result: zero leaked sessions, cache-hit ratio settled at a healthy 81% on the routes that should be cached, and Toronto TTFB held at 31ms.
"Cache everything" is the fastest way to cache the wrong thing.
The number that mattered: 0 leaked sessions after the cache-key split.
This post was published in the Telegram channel Edge of Glory (@EdgeOfGloryCDN). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.