~/talk

Taking Laravel to the edge with HTTP caching & Varnish

Talkat Laracon EU 2022 · 2022-04-26..04-27· [php, web-performance]
slides:none on file

Varnish proves it can sit in front of Laravel and cut work by serving cached responses at 500 Gbps and handling 100k requests/sec on a single box; it honors HTTP cache headers, supports stale-while-revalidate 300 (grace), and creates variations with Vary so language and encoding aren’t poisoned. Practical fixes: strip unnecessary cookies or mark routes public, emit ETags and short‑circuit with middleware so unchanged pages return 304 early, and assemble dynamic bits using ESI via a custom Blade directive and surrogate-control headers.

AI-written summary · about

  1. 0:00Introduction
  2. 3:17Varnish and web performance
  3. 5:45How Varnish works
  4. 7:28HTTP caching headers
  5. 12:02Caching Laravel responses
  6. 15:12Partial page caching with ESI
  7. 19:25Cache objects and language variations
  8. 21:51Advanced VCL and middleware
  9. 23:15Beyond web acceleration
  10. 24:50Q&A
~/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.