~/talk

Lightning Talk: HTTP Caching in Python

Talkat Python Web Conf 2023 · 2023-03-13..03-17· [web-performance, python]
links:none on file
slides:none on file

Demonstrates using requests with requests-cache to make API calls behave like a browser by honoring Cache-Control and ETag headers. Shows replacing requests.Session with a cache session that stores responses in a local SQLite backend, reusing a max-age 60s entry from the GitHub API and turning a 2‑second HTTPBin delay into an instantaneous cache hit. Uses ETag conditional requests after expiry to avoid full responses and reduce request volume.

AI-written summary · about

~/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.