<b>This week in caching: full-page cache vs the logged-in user</b>
Three on the hardest FPC problem: personalization.
— <b>ESI for the dynamic island</b> — Edge Side Includes cache the page but punch a hole for the cart/greeting; Varnish and Akamai support it, complexity is real.
— <b>cache the shell, hydrate with JS/AJAX</b> — serve one cached HTML to everyone, fetch the user bit client-side. Simpler than ESI for most.
— <b>bypass cookie discipline</b> — set a <code>logged_in</code> cookie and bypass FPC only for it; the classic bug is caching a logged-in page and serving it to the world.
<b>Bookmark:</b> the ESI vs client-hydration comparison — knowing when ESI's complexity actually pays off saves weeks.
Cache Catch
@CacheCatch
<b>This week in caching: full-page cache vs the logged-in user</b>
Этот пост опубликован в Telegram-канале Cache Catch. Подписаться можно по ссылке: @CacheCatch.