Edge of Glory
Edge of Glory
@EdgeOfGloryCDN

The Vary header silently doubling a store's cache

The Vary header silently doubling a store's cache

A homeware shop in Manchester had a healthy 88% hit ratio that should have been 97%. Storage costs were oddly high too.

We ran a Vary header audit:

— Listed every distinct Vary value the origin emitted per route
— Found Vary: User-Agent on all HTML — that splits cache across thousands of UA strings
— Found Vary: Cookie on pages that didn't use cookies at all
— Replaced UA-varying with edge device detection, normalized to three buckets: mobile, tablet, desktop
— Removed Cookie from Vary on anonymous routes

The cache stopped storing one copy per browser fingerprint. Hit ratio reached 96% and storage dropped by a third. Vary is the most expensive header on the web — every value you add multiplies your cache. Audit it route by route; most sites Vary on things they don't need.

The number that mattered: 8 points of hit ratio recovered by deleting two words.
Этот пост опубликован в Telegram-канале Edge of Glory. Подписаться можно по ссылке: @EdgeOfGloryCDN.
tech

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

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

start

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

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

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