~/talk

Varnish for PHP developers

Talkat Laracon EU 2016 · 2016-08-23..08-24· [web-performance]
slides:none on file

Varnish is an HTTP cache/reverse proxy that turns many backend PHP requests into one by honoring or overriding TTLs, using vcl_recv, vcl_hash, vcl_backend_response, vcl_deliver to strip cookies, rewrite Host, set TTLs and enable ESI fragments and grace mode for stale‑while‑revalidate. Config changes live in VCL, extensions come as vmods (cookie parser), and cache invalidation uses curl PURGE, varnishadm ban or restarting. Debug with varnishlog, varnishhist and varnishncsa; examples show rewritten responses cached for minutes while backends only see far fewer hits.

AI-written summary · about

  1. 0:00Intro
  2. 0:21WHAT'S THIS TALK ABOUT? • What is Varnish? Why need it? . (small) introduction to HTTP headers
  3. 2:32WHY USE VARNISH?
  4. 3:53REQUEST HEADERS • Example: user requests
  5. 5:41RESPONSE HEADERS
  6. 6:56HOW VARNISH WORKS
  7. 10:19VARNISH CONFIGURATION LANGUAGE
  8. 11:03MANIPULATING THE CLIENT REQUEST
  9. 14:09MANIPULATING THE RESPONSE
  10. 16:27MANIPULATING THE DELIVERY
  11. 17:30CHALLENGE: VISUALISING CHANGES
  12. 18:10EXAMPLE MODIFY USER REQUEST
  13. 22:33DETERMINING HASH KEYS
  14. 23:49CHALLENGE: URLS
  15. 25:09CHALLENGE: COOKIES
  16. 27:35CHALLENGE: HOST
  17. 28:55CACHING API REQUESTS
  18. 32:22BAN REQUEST
  19. 34:48EDGE SIDE INCLUDES
  20. 39:28TTL: HOW LONG TO CACHE?
  21. 40:54GRACE MODE Delivering objects beyond their TTL
  22. 44:59GETTING STARTED
~/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.