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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
On a 304 we will get a new set of headers that we want to
update our cached value with, assuming we have one.

This should only ever be called when we've sent an ETag and
gotten a 304 as the response.

src/c/a/cachecontrol-HEAD/tests/test_cache_control.py   cachecontrol(Download)
        cc.cache_url = Mock(return_value='http://foo.com')
 
        result = cc.update_cached_response(Mock(), resp)
 
        assert result.headers['ETag'] == resp.headers['ETag']