Migration Helpdesk
Migration Helpdesk
@MigrationHelpdesk

<b>Q: Should my 301s live at the CDN edge or on the origin server?</b>

<b>Q: Should my 301s live at the CDN edge or on the origin server?</b>

Great question, and one most guides skip.

Short answer: edge if you can, origin if you must — but never both for the same path.

Long answer: when you put redirects at the CDN (Cloudflare Rules, Fastly), bots get the 301 in one fast hop without ever touching your app. That's faster and survives even if origin is down. Origin-level (your .htaccess or app router) is fine too, but it's slower and easier to forget when you decommission the old box.

The real trap is layering both — edge sends to one URL, origin sends somewhere else, and you get a chain or a loop. Pick one layer per rule.

Next step: in your redirect map, add a column "where this lives" (edge / origin). One value per row. Audit for any path that appears in both.
Этот пост опубликован в Telegram-канале Migration Helpdesk. Подписаться можно по ссылке: @MigrationHelpdesk.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

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

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

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