cachecontrol icon indicating copy to clipboard operation
cachecontrol copied to clipboard

The httplib2 caching algorithms packaged up for use with requests.

Results 74 cachecontrol issues
Sort by recently updated
recently updated
newest added

Is it possible to cache responses into a sqlite database?

`AttributeError: module 'cachecontrol' has no attribute 'caches'` ```python cachecontrol.caches.FileCache() ``` Solution from [SO](https://stackoverflow.com/questions/4871369/python-error-attributeerror-module-object-has-no-attribute) is to auto import subs into main `__init__.py` Thanks.

I'm accessing a REST API that returns different data structures based on the `Accept` header. Cachecontrol seems to be properly handling the `Vary: Accept, Accept-Encoding` that the server sends back...

It appears that while this does correct handle ``CacheControl: no-store`` on responses, it does *not* correctly handle ``CacheControl: no-cache``. Causing them to get cached in some cases.

While working on #183 and wondering why some tests take a long time, I noticed a bug in [``TestMultipleChoicesRedirects``](https://github.com/ionrock/cachecontrol/blob/master/tests/test_redirects.py#L30) - the test accesses ``/multiple_choices_redirect/`` but the ``SimpleApp`` server only defines...

After considering bringing this up, I thought I might as well. It seems that #135 already solved pypa/pip#4508, but that wasn't noticed because the vendored dependency was not updated with...

Responses where `Cache-Control` is set to `private` may be cached but must not be cached in a shared cache. I have a use of cachecontrol for an API client I'm...

This gives us freedom to choose not to install msgpack.

Often times CacheControl be confusing b/c something seems like it should be cached, but it is not. There is typically a good explanation for this and work around that comes...

This PR adds a mechanism to sort query parameters for `CacheController.cache_url`, so that even if the requests were issued without sorting them first, caching should still work. The code changes...