cachecontrol
cachecontrol copied to clipboard
The httplib2 caching algorithms packaged up for use with requests.
[RFC-5861](https://tools.ietf.org/html/rfc5861#section-3) introduces a cache-control extension "stale-while-invalidate": > When present in an HTTP response, the stale-while-revalidate Cache- > Control extension indicates that caches MAY serve the response in > which it...
is there a way to test this module alongside betamax? the idea would be that the cachecontrol module would hit its own cache if present, otherwise bounce back into betamax....
Patch should be an invalidating method. https://github.com/ionrock/cachecontrol/blob/9d5c1f5e71900d200c3bebe995de9f6435d39b72/cachecontrol/adapter.py#L13
Is there a way to either: - clear the cache for a session - clear the cache for a given request
Please pin the version range of `msgpack` to not exceed say version 2.0.0, in order to help mitigate breaking changes in `msgpack` affecting downstream users of `CacheControl`.
Mixing HEAD and GET requests for the same URL does not work. This isnt enabled by default, but afaics any use of the `cacheable_methods` to be anything other than `GET`...
Hi! I'd like to implement cache system using the requests library for a microservice architecture. We already have a Redis backend built into our architecture and I would like to...
I've been working with a cache of PyPI json records for a while, and have two resources which now causes `TooManyRedirects` because of PyPI package normalisation. One is https://pypi.org/project/django-coverage-plugin/ The...
I'd like to cache responses for POST requests, but only for matching `data` / `json` (similar to params have to match for GET requests). This however does not appear to...
I'm using python 3.6 with `requests` module for API consumption and `CacheControl` module for caching the API response. I'm using following code but cache does not seems to be working:...