Edge of Glory
Edge of Glory
@EdgeOfGloryCDN

A one-year TTL the site was afraid to set

A fintech app in London capped TTLs at one hour on everything, including hashed JS and CSS bundles like app.4f9a2c.js. The fear was stale code shipping to users. The cost was every hashed asset re-fetching from a Virginia origin twelve times a day for no reason, since a hashed file never changes.

We set Cache-Control: max-age=31536000, immutable on fingerprinted assets and kept short TTLs only on HTML. Because the filename changes on every deploy, a new bundle is a new URL: long caching and instant deploys both, no contradiction.

Cache-hit ratio on static assets went 84% to 99.8%. Origin requests for JS and CSS fell 96%. Repeat-visit load times dropped because browsers and edge both held assets for good.

The number that mattered: one hour TTL became one year, safely.
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 за пакет по сети.