~/talk

Caching the uncacheable in Varnish

Talkat SREday London 2024 · 2024-09-19..09-20· [web-performance, web-platform]
slides:none on file

Explains how Varnish turns otherwise uncacheable responses into cached assets by using VCL to strip tracking cookies, create hash variants and override TTLs (images cached for a year, default HTML an hour), handling 99% static sites while isolating the 1% stateful bits with ESI placeholders or AJAX. Shows validating HMAC‑SHA256 JWTs and returning synthetic JSON after reading session data from Redis so personalized API responses never hit origin, and previews Sledgehammer wasm for edge logic and strip tracking cookies as a practical rule — Sledgehammer is experimental but the VCL + Redis + JWT techniques are production-ready.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:27Why slow websites lose money
  3. 3:13The role of caching
  4. 4:39About Varnish Cache
  5. 6:45Default caching behavior
  6. 8:08Varnish Configuration Language
  7. 9:34Varnish state machine
  8. 11:00Stripping cookies for caching
  9. 13:28Using cookies for cache variations
  10. 15:35Edge Side Includes for stateful content
  11. 17:39Computing content on the edge
  12. 18:22Validating JWT tokens
  13. 21:54Synthetic responses
  14. 22:58Personalized synthetic responses
  15. 25:04Edge computing with WebAssembly
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.