Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Algorithm for caching requests.

This assumes a requests Response object.

src/c/a/cachecontrol-HEAD/tests/test_cache_control.py   cachecontrol(Download)
        assert cc.cache.get(cache_url)
 
        cc.cache_response(self.req(), resp)
        assert not cc.cache.get(cache_url)