Cache Catch
64 subscribers
26 photos
1 video
20 links
The best caching reads, tools, and configs from around the web, curated weekly. Object cache, page cache, opcache -- the good stuff, none of the noise.
Download Telegram
This week in caching: the stale-while-revalidate rabbit hole
Four pieces on serving slightly-old content so nobody waits on a cold cache:
RFC 5861 in plain English — what stale-while-revalidate and stale-if-error actually promise, and which CDNs honor them.
SWR at the edge vs in SWR (the React hook) — disambiguates the two things that share a name; skip if you already know the difference.
Async revalidation gotchas — the thundering-herd problem when 10k users all trigger the background refresh at once, and request coalescing as the fix.
Browser-side: Cache-Control with stale-while-revalidate — Chromium support notes for the response header version.
Credits: Harry Roberts and the Fastly docs team.
Bookmark: the request-coalescing piece — it's the part most SWR tutorials quietly skip.
This week in caching: stopping the stampede
What happens when a hot key expires and a thousand requests rebuild it at once. Roundup:
Probabilistic early expiration (XFetch) — the Vargas algorithm that recomputes a value slightly before TTL based on how long the last build took; the cleanest math on dogpile prevention.
Locking vs leasing — memcached's lease tokens compared to Redis SETNX locks, with the deadlock failure mode of naive locks.
Why a tiny TTL jitter beats a fixed TTL — adding random seconds so 100k keys don't all expire on the same second.
Credits to the original RedisLabs and Facebook memcache papers.
Bookmark: the XFetch explainer — once you see the formula you can't unsee how many sites need it.
Pairs well with this channel

@BackupOrDie — Strong opinions on backup strategy, because the people who skip it always learn the… Quietly one of the better feeds in the space.
This week in caching: the second hard problem
Invalidation, the half of the famous joke nobody solves cleanly:
TTL vs event-based vs versioned keys — a decision matrix for when to expire on a clock, on a write, or by bumping a key suffix.
Cache-aside vs write-through vs write-behind — the consistency trade-offs of each, with the dual-write race that bites cache-aside.
Tag-based invalidation — how surrogate keys (Fastly) and cache tags (Symfony) let you purge 'everything touching product 451' in one call.
Why deleting beats updating on write — the lazy-fill argument against keeping cache in sync.
Credits: the AWS caching whitepaper and Symfony cache docs.
Bookmark: the cache-aside dual-write race writeup — the bug that ships to prod looking correct.
This week in caching: HTTP caching headers, decoded
The headers that decide whether a return visit even hits your server:
Cache-Control: immutable — the directive that tells browsers to skip revalidation entirely for fingerprinted assets; underused outside Facebook.
ETag vs Last-Modified — why strong ETags break behind some proxies and when 304s actually save you bandwidth.
no-cache is not no-store — the eternally confused pair, spelled out with what each does to the back button.
Vary: the foot-gun — how Vary: User-Agent fragments your cache into uselessness.
Credits to Jake Archibald's caching best-practices post, still the canonical reference.
Bookmark: Archibald's piece — if you read one thing on HTTP caching this year, this.
This week in caching: edge vs origin, the real trade-offs
Where the cache lives changes everything downstream:
Edge caching personalized pages — ESI and edge-side composition so logged-in users still get cached shells with dynamic holes punched in.
Cache key cardinality at the edge — why caching by geo or device blows up your storage and hit rate simultaneously.
Origin shield — the often-missed CDN layer that collapses requests so your origin sees one miss, not 200 PoPs worth.
Compute-at-edge isn't free caching — when Workers/Lambda@Edge add latency instead of removing it.
Credits: Cloudflare and Fastly architecture docs.
Bookmark: the origin-shield explainer — single biggest origin-load win most teams haven't turned on.
This week in caching: full-page cache landmines
FPC is the biggest speed win and the biggest footgun. Field notes:
Caching the logged-in state by accident — the classic where user A sees user B's cart because the cache key ignored the session.
CSRF tokens in cached HTML — why your forms 419/403 after enabling FPC, and the ESI/AJAX fix.
Flash messages and one-time content — how cached HTML strands 'order confirmed' banners on the wrong page.
The cache that never warms — bot-only cache fills leaving real users on cold misses.
Credits to the Magento and Drupal performance communities, who've stepped on all of these.
Bookmark: the session-leak writeup — the bug that becomes a security incident.
This week in caching: chasing hit ratio
Your CDN bill and TTFB both track this number. Reads:
Reading the CDN cache-status header — decoding HIT/MISS/EXPIRED/STALE and the newer standardized Cache-Status header.
Why your ratio is lower than you think — the long tail of rarely-requested URLs that never get a second hit (tiered caching as the answer).
Compression and caching order — caching pre-compressed vs compressing per response, and why getting it backwards wastes CPU.
Cache hit ratio vs cache offload — the two metrics people conflate; one can look great while the other is terrible.
Credits: the Fastly and Akamai measurement guides.
Bookmark: the standardized Cache-Status header explainer — finally a portable way to debug across CDNs.
This week in caching: Memcached vs Redis, past the meme
The comparison everyone has an opinion on, done carefully:
When Memcached actually wins — multithreaded, slab allocation, lower memory overhead per key for pure string KV; not dead, just specialized.
Redis data structures as a cache feature — sorted sets for leaderboards, hashes for partial updates without re-serializing the whole object.
Memory fragmentation realities — jemalloc behavior and why your RSS dwarfs your dataset.
Eviction policies that matter — allkeys-lru vs allkeys-lfu and the workload where LFU quietly outperforms.
Credits to the Redis and Memcached maintainer docs.
Bookmark: the slab-allocation explainer — the reason Memcached still ships in 2026.
This week in caching: warming the cache before users do
Cold caches after a deploy or purge cost you the worst TTFB of the day:
Sitemap-driven crawl warming — replaying your sitemap.xml through the cache post-deploy so the first real visitor gets a HIT.
Prioritizing by traffic, not URL count — warming your top 200 pages from analytics beats crawling all 50k.
Staggered warm vs big-bang — why hammering your origin to warm everything at once just moves the outage.
Keeping warm: keep-alive crawlers — lightweight pings that re-warm hot pages just before TTL.
Credits: the WP Rocket and Cloudflare cache-reserve docs.
Bookmark: the traffic-weighted warming approach — 80% of the benefit for 1% of the crawl.
This week in caching: the Vary header, the quiet hit-rate killer
Small header, outsized damage. Curated:
Vary: Accept-Encoding done right — the one Vary value you almost always want, and why normalizing it matters.
Vary: Cookie = no cache — how a single cookie in the Vary list effectively disables shared caching.
Key normalization instead of Vary — CDN cache-key rules as a surgical alternative to fragmenting on a full header.
Client Hints and the future of Vary — how Vary: Sec-CH-* changes responsive image caching.
Credits to the MDN docs and Andrew Betts' edge-caching talks.
Bookmark: the cache-key-vs-Vary comparison — the trick that recovers a tanked hit ratio.
This week in caching: nginx fastcgi_cache, the cheap full-page layer
For folks who'd rather not run Varnish:
fastcgi_cache_key and the bypass cookie — the canonical config to skip cache for logged-in users via a cookie regex.
fastcgi_cache_use_stale — serving stale on backend error/timeout, nginx's answer to Varnish grace mode.
cache lock to prevent stampede — fastcgi_cache_lock so one request fills and the rest wait.
Purging without the paid module — the open-source cache_purge build and a map-based selective purge trick.
Credits to the nginx docs and the Easy Engine config writeups.
Bookmark: the use_stale + cache_lock combo — Varnish-grade resilience in a stock nginx block.
Neighbor spotlight: @LockdownLedger. They go deep on Web security hardening — the kind of channel you actually keep notifications on for.
Forwarded from Потрачено! Клуб спящих бизнесменов!
This media is not supported in your browser
VIEW IN TELEGRAM
🚀 aff.top — вся индустрия арбитража в одном месте
🧠 Блог про арбитраж и ИИ — как нейросети меняют залив и антифрод
🚨 База спамеров — ежедневно собираем спамеров и ведём рейтинг
🛠 70+ инструментов — от клоаки до антифрод-чека
🎬 1000+ видео — весь YouTube про трафик в одной ленте
👤 2400+ персон — байеры и фаундеры с контактами напрямую
Без регистрации, без платных «премиумов».
👇 Подписывайся на канал
This week in caching: caching APIs, REST vs GraphQL
APIs break the easy HTTP-cache story. Roundup:
Why GraphQL fights HTTP caching — single POST endpoint, no URL to key on; persisted queries as the workaround that restores GET-cacheability.
Normalized client caches — how Apollo/urql cache by entity ID, not response, and the cache-eviction problems that follow.
REST: caching collection vs item endpoints — the invalidation cascade when one item changes a paginated list.
Cache-Control on JSON APIs — the headers REST APIs forget to send.
Credits to the Apollo docs and Phil Sturgeon's API caching writeups.
Bookmark: the persisted-queries piece — the cleanest way to make GraphQL CDN-cacheable.
This media is not supported in your browser
VIEW IN TELEGRAM
Алиса AI будет конкурировать с Google AI Studio

Яндекс разворачивает экосистему AI-агентов на базе Алисы с доступом сначала для компаний, затем для всех. Агенты уже работают в Яндекс Такси и Лавке, скоро появятся в браузере и студии разработки. Платформа интегрирует стандартные функции — заказ такси, покупки, анализ данных. Алиса AI показывает неплохие результаты: менее известна, чем конкуренты, поэтому предлагает щедрые лимиты на видеогенерацию и работу с контентом. Яндекс планирует внедрить…

➡️ Читайте на сайте: https://aff.top/blog/alisa-ai-budet-konkurirovat-s-google-ai-studio

🧠 Ещё больше инсайтов → в канале AFF.top
This media is not supported in your browser
VIEW IN TELEGRAM
В Zennoposter добавили ИИ-помощник

Zennolab добавил в Zennoposter встроенный ИИ-кубик с доступом к четырём моделям (Gemini, DeepSeek, Claude, ChatGPT) — 50 бесплатных запросов в сутки. Есть режимы Assistant (чтение) и Agent (автоматическое создание скриптов), плюс новый GET-запрос по API. Нейросети хорошо справляются с регистрацией, постингом, фармингом аккаунтов и простым кодированием, но требуют проверки при парсинге динамических сайтов и диагностике ошибок. В связке с Zennoobr…

➡️ Читайте на сайте: https://aff.top/blog/v-zennoposter-dobavili-ii-pomoschnik

🧠 Ещё больше инсайтов → в канале AFF.top
This media is not supported in your browser
VIEW IN TELEGRAM
Новую Google reCapcha прошли статичной картинкой

Google выпустил обновленную reCAPTCHA, требующую движений рук для прохождения, но система оказалась уязвима к обходу. Достаточно транслировать статичное изображение с нужным жестом через виртуальную камеру с помощью простого Python-скрипта, чтобы нейросеть пропустила пользователя. Это создает серьёзный риск для сайтов: защита от ботов, позиционировавшаяся как прорыв, на деле не работает. Баг остается актуальным и позволяет спамерам легко автомат…

➡️ Читайте на сайте: https://aff.top/blog/novuiu-google-recapcha-proshli-statichnoi-kartinkoi

🧠 Ещё больше инсайтов → в канале AFF.top
This week in caching: how many cache layers is too many
Browser, CDN, edge, reverse proxy, object cache, query cache — the stack adds up:
Mapping your layers — drawing the full request path so you know which layer served (or stranded) a response.
TTL alignment across layers — the bug where a 1h CDN TTL outlives a 5m origin TTL and serves stale long after a purge.
Debugging a multi-layer stale — a checklist for 'I purged and it's still old' across each tier.
When a layer is pure overhead — spotting the proxy that adds latency and zero hit rate.
Credits: the AWS and Cloudflare layered-caching guides.
Bookmark: the TTL-alignment section — the silent cause of most 'why is it still cached' tickets.
Forwarded from AFF.TOP
This media is not supported in your browser
VIEW IN TELEGRAM
DeepSeek представит последнюю версию v4

DeepSeek выпустит v4 в середине июля с новой моделью ценообразования API: токены подорожают в 2 раза в часы пиковой нагрузки (09:00–12:00 и 14:00–18:00 по пекинскому времени). Компания планирует уведомлять пользователей по почте за 24 часа до изменения тарифов. Проблема с ошибками «server busy» останется, но обойдётся дороже — это может существенно повлиять на экономику проектов, которые активно используют API DeepSeek для автоматизации и масшта…

➡️ Читайте на сайте: https://aff.top/blog/deepseek-predstavit-posledniuiu-versiiu-v4

🧠 Ещё больше инсайтов → в канале AFF.top