~/talk

Debugging adventures in Rack-land

Talkat EuRuKo 2018 · 2018-08-24..08-25· [ruby]
speakerdeck:panthomakos
slides:none on file

A Rails settings page shows the wrong unit until the page is refreshed twice because a request-level cache keeps stale athlete objects. Debugging uses Pry, bundle show/open and inspecting the Rack middleware stack to discover that a request-level cache is cleared via a body proxy close but Rack::ETag drops close by consuming body parts to compute a digest, preventing the clear. Workarounds: upgrade Rack where the bug is fixed, insert the cache middleware before ETag, or clear the cache before the request.

AI-written summary · about

  1. 0:00Start
  2. 0:38Debugging Adventures in Rack-land
  3. 1:19STRAVA
  4. 7:24How do we clear the cache in web requests?
  5. 7:38Each request needs a fresh cache.
  6. 8:31What makes an HTTP response?
  7. 15:27Rack + Rack Middleware
  8. 29:27Hooks that manage the underlying middleware complexity for you.
~/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.