~/talk

Love your cache: Optimize for the second load

slides:none on file

Claim: sensible default is don't cache by default and validate via ETags (Cache-Control: max-age=0, must-revalidate, public) while using a CDN. Implementation details: Netlify and Google 5s hosting support this; build tools include Webpack/Rollup/Parcel and Tooling.report; Eleventy + nunjucks injects query-string hashes for immutable hashed assets and web.dev splits lit-element/lit-html into a separate bundle so those large deps stay cached. Service worker uses network-first for freshness; web.dev/live initially broke from aggressive caching but is now fixed.

AI-written summary · about

  1. 0:00Intro
  2. 0:412nd Load Goals
  3. 1:11Extreme options
  4. 1:32Case Study: web.dev
  5. 3:06Some guidance focuses on
  6. 3:25Web Vitals considers all loads
  7. 4:46Developer Goals
  8. 6:09Real-World for End-Users
  9. 6:56No Caching Rules
  10. 10:00Validation via Headers
  11. 13:08Downsides
  12. 14:05Immutable Progression
  13. 14:42Cache-Control
  14. 16:23Middle Ground
  15. 20:29Query String vs Filename
  16. 23:21Concrete Tooling
  17. 24:11Service Worker Well-Lit Path
  18. 25:01Cache First
  19. 25:20Most reload UX is poor
  20. 27:40Optimizing the 2nd load
~/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.