cachecontrol travis-ci python

The httplib2 caching algorithms packaged up for use with requests.

3 years after

============== CacheControl

.. image:: :target: :alt: Latest Version

.. image:: :target:

CacheControl is a port of the caching algorithms in httplib2 for use with requests session object.

It was written because httplib2's better support for caching is often mitigated by its lack of threadsafety. The same is true of requests in terms of caching.


.. code-block:: python

import requests

from cachecontrol import CacheControl

sess = requests.session() cached_sess = CacheControl(sess)

response = cached_sess.get('')

If the URL contains any caching based headers, it will cache the result in a simple dictionary.

For more info, check out the docs_

.. _docs: .. _httplib2: .. _requests:

Related Repositories



Grunt plugin to interact with AWS S3 using the AWS SDK ...



A Grunt interface into the Amazon Node.JS SDK ...



API testing tool with automatic swagger assertions ...



Enables ZF2 apps to output ESI tags for a widgetized and highly cacheable applic ...



Plugin to deploy a Lektor project to an S3 bucket ...

Top Contributors

ionrock dstufft josephw farwayer msabramo eads rmcgibbo jaraco sigmavirus24 toolforger alex versae tmiasko astraw bukzor damz cournape dahlia ercpe parkouss kevinburke mblakele chhantyal sinemetu1 tow


-   v0.11.7 zip tar
-   v0.11.6 zip tar
-   v0.11.5 zip tar
-   v0.11.4 zip tar
-   v0.11.3 zip tar
-   v0.11.2 zip tar
-   v0.11.1 zip tar
-   v0.11.0 zip tar
-   v0.10.8 zip tar
-   v0.10.7 zip tar
-   v0.10.6 zip tar
-   v0.10.5 zip tar
-   v0.10.4 zip tar
-   v0.10.3 zip tar
-   v0.10.2 zip tar
-   v0.10.1 zip tar
-   v0.10.0 zip tar
-   v0.9.4 zip tar
-   v0.9.3 zip tar
-   v0.9.2 zip tar
-   v0.9.1 zip tar
-   v0.9.0 zip tar
-   v0.8.3 zip tar
-   v0.8.2 zip tar
-   v0.8.1 zip tar
-   v0.8.0 zip tar
-   v0.7.3 zip tar
-   v0.7.2 zip tar
-   v0.7.1 zip tar
-   v0.7.0 zip tar