Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 830 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 830 Bytes

CacheYou

Latest Version CI

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

Quickstart

import requests
from cacheyou import CacheControl

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

response = cached_sess.get('http://google.com')

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

For more info, check out the docs