cachecontrol
cachecontrol copied to clipboard
The httplib2 caching algorithms packaged up for use with requests.
Looks like test suite is using `lockfile` module which is no longer maintained (since 2015). https://pypi.org/project/lockfile/#history https://github.com/openstack-archive/pylockfile/ I'm not sure what could be used instead ..
Since you have very little time to maintain this, like we all do, one thing I've successfully done, inspired by https://lukasa.co.uk/2016/04/One_Of_The_Team/ via Hynek Schlawack: anyone who lands a PR gets...
Setting max-age on the response causes cachecontrol to fail with exception about 'expires' argument
Applies to cachecontrol 0.12.7 and probably 0.12.8 When we have a response with following header: `'Cache-Control': 'public, max-age=1'` I believe this may be related to this PR: https://github.com/ionrock/cachecontrol/pull/233 We get...
This is a prerequisite for doing automatic releases on a GitHub tag. In particular, instead of using `bumpversion`, the version is read from the latest Git tag. So to do...
FYI - pypa/pip#2984 It might still exist with the current development version. =)
This tries to solve #145. It seems like `CallbackFileWrapper.__buf` is keeping its stream after we're done with it, and it unnecessarily bloats the process. Running the script at the end...
I was banging my head against a wall trying to figure out why it wasn't caching and I found it :-) The website I was calling used "s-maxage" in the...
It would be helpful if the value for expires in `BaseCache.set` was documented. I couldn't find it and the redis/file caches aren't explicit. Is the expires value guaranteed to be...
Hi, I'd like to do the following: ```py cached_sess.clear_cache() ``` Is there anything which can help to do this? Or it should be considered as a new feature?
```py data = self.api.get( file_url, headers={'range': f'bytes={start}-{end}'}, stream=True ) ``` ```log [cachecontrol.controller] Status code 206 not in (200, 203, 300, 301) ``` Would love to be able to cache [partial...