Edge of Glory
Edge of Glory
@EdgeOfGloryCDN

Edge function vs. origin redirect: a Paris store fixes a redirect tax

An apparel site geo-redirected visitors to localized URLs at origin. A shopper in Lisbon hit the edge, missed cache on the bare path, traveled to the Paris origin, got a 302, then came back across the edge again for the real page.
That round trip added 240ms before anything rendered.
They moved the geo-redirect into an edge function that read the country header and issued the 302 right at the Lisbon PoP — origin never involved.
Redirect latency dropped from 240ms to 11ms. Origin saw 100% fewer redirect requests.
Origin redirects are fine when logic needs database state. Edge functions win when the decision depends only on request headers — geo, device, A/B cookie.
The number that mattered: redirect latency from 240ms to 11ms.
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 за пакет по сети.