This is a SQLite cache backend for CacheControl.
import requests
from cachecontrol import CacheControl
from cachecontrol_sqlite import SQLiteCache
sess = CacheControl(requests.Session(),
cache=SQLiteCache('cache.db'))
response = sess.get("https://httpbin.org/cache/60")