Lightning Talk: HTTP Caching in Python
summary
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
related talks
45mCaching: A trip down the rabbit hole
17mCache me if you can: Boosting performance with Data Caching in Python
29mA Guided Tour of Caching Patterns
44m#BackToBasics: The HTTP Cache
46mA Hitchhiker’s Guide to Caching Patterns
35mCaching everywhere
39mHTTP Caching for REST APIs
06mCache Is the King! Create Cache in AWS Lambdas
