~/talk

Caching: A trip down the rabbit hole

Talkat PyCon Australia 2014 · 2014-08-01..08-05· [web-performance, python]
linkedin:tveastman
slides:none on file

Shows precise fixes and tools: use Django’s last-modified and etag decorators to return 304s instead of re-sending megabyte payloads, run collectstatic with cached staticfiles storage so filenames embed an md5 and can be cached for decades, put a fast reverse proxy like Varnish in front for sudden traffic spikes, back cached views with memcached/Redis and optionally use the ETag-as-cache-key trick or async refresh (Celery) so heavy responses are served from cache not recomputed.

AI-written summary · about

  1. 0:00Caching: A trip down the rabbit hole
  2. 15:15What is an 'Etag?
  3. 16:04What you get for free
  4. 17:17Building your own Etag function
  5. 20:56The Expires: Header
  6. 22:16The Cache-control: header
  7. 26:52The right way to handle static files
  8. 29:46Conclusions for web browser caching
  9. 30:52Web-caching proxies
  10. 36:36Cool stuff you can do with varnish
  11. 41:40Use the Etag as the caching key
  12. 43:23Lessons learned
~/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.