Cache Catch
Cache Catch
@CacheCatch

This week in caching: revalidation done right (304s)

This week in caching: revalidation done right (304s)
Three pieces on conditional requests — the half of caching people skip.
— ETag vs Last-Modified — ETags are precise but break across load-balanced servers if not normalized (Apache's inode-based default is a classic gotcha). Last-Modified is coarser but stable.
— weak vs strong ETags — W/"..." allows semantically-equal matches; use weak for gzip-varying responses or you'll never get a 304.
— 304 still costs a round-trip — revalidation isn't free; pair it with a real max-age so you skip the network entirely on fresh assets.
Bookmark: the MDN conditional-requests page — the weak-ETag-plus-compression gotcha alone is worth the read.
Этот пост опубликован в Telegram-канале Cache Catch. Подписаться можно по ссылке: @CacheCatch.
tech

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

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

start

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

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

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