NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #303 most downloaded on PyPI
httplib2 caching for requests
Last release 10 months ago
14 Nov 2025
Release timing varies
gaps range from 2 months to 1.9 years
Some releases are documented
notes for 15 of 49 stable releases
2 versions withdrawn
withdrawn after publishing
13 years old
52 releases · first in 2013
build(deps): bump github/codeql-action from 3.28.16 to 3.28.17 in the actions group by @dependabot [bot] in #382
Full Changelog: v0.14.3...v0.14.4
One column per quarter.
Drop support for Python 3.8.
Eliminate a race condition when overwriting cache entries.
requests object leak when doing caching on a streamed responsegithub: bump signing step, use dependabot by @woodruffw in #329
Full Changelog: v0.14.0...v0.14.1
doc: improve the docs by @frostming in #316
FileCache by @m9810223 in #318Full Changelog: v0.13.1...v0.14.0
Explicitly allow pathlib.Path as a type for FileCache.directory.
Don't use the cache to return a full response if a request has a Range header.
serialize: remove v1 and v2 formats by @woodruffw in #310
Full Changelog: v0.13.0...v0.13.1
Support for old serialization formats has been removed.
Move the serialization implementation into own method.
Drop support for Python older than 3.7.
This is a release candidate for 0.13.1.
This is a release candidate for 0.13.1.
Full Changelog: v0.13.0...v0.13.1rc0
Fix #292 : disuse HTTPResponse.strict by @dairiki in #301
Full Changelog: v0.12.12...v0.13.0
YANKED
The project has been moved to the PSF organization.
Discard the strict attribute when serializing and deserializing responses.
Fix the IncompleteRead error thrown by urllib3 2.0.
Remove usage of utcnow in favor of timezone-aware datetimes.
Remove the compat module.
Use Python's unittest.mock library instead of mock.
Add type annotations.
Exclude the tests directory from the wheel.
Revert the change "switch lockfile to filelock" due to incompatibilities
Full Changelog: v0.12.13...v0.12.14
Revert the change "switch lockfile to filelock" to fix the compatibility issue.
Fix #292 : disuse HTTPResponse.strict by @dairiki in #301
Full Changelog: v0.12.12...v0.12.13
Discard the strict attribute when serializing and deserializing responses.
Fix the IncompleteRead error thrown by urllib3 2.0.
Exclude the tests directory from the wheel.
Nothing published for this version
Added new variant of FileCache, SeparateBodyFileCache, which uses less memory by storing the body in a separate file than metadata, and streaming data
Added new variant of FileCache, SeparateBodyFileCache, which uses less memory by storing the body in a separate file than metadata, and streaming data in and out directly to/from that file. Implemented by [Itamar Turner-Trauring](https://pythonspeed.com), work sponsored by [G-Research](https://www.gresearch.co.uk/technology-innovation-and-open-source/).
Nothing published for this version
Nothing published for this version
Nothing published for this version
Dropped support for Python 2.7, 3.4, 3.5.
Dropped support for Python 2.7, 3.4, 3.5.
Reduced memory usage when caching large files.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Rather than using compressed JSON for caching values, we are now using MessagePack (http://msgpack.org/). MessagePack has the advantage that that seri
Rather than using compressed JSON for caching values, we are now using MessagePack (http://msgpack.org/). MessagePack has the advantage that that serialization and deserialization is faster, especially for caching large binary payloads.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release introduces the cachecontrol.heuristics.LastModified heuristic. This uses the same behaviour as many browsers to base expiry on the Last-M
This release introduces the cachecontrol.heuristics.LastModified heuristic. This uses the same behaviour as many browsers to base expiry on the Last-Modified header when no explicit expiry is provided.
Nothing published for this version
The biggest change is the introduction of using compressed JSON rather than pickle for storing cached values. This allows Python 3.4 and Python 2.7 to
The biggest change is the introduction of using compressed JSON rather than pickle for storing cached values. This allows Python 3.4 and Python 2.7 to use the same cache store. Previously, if a cache was created on 3.4, a 2.7 client would fail loading it, causing an invalid cache miss. Using JSON also avoids the exec call used in pickle, making the cache more secure by avoiding a potential code injection point. Finally, the compressed JSON is a smaller payload, saving a bit of space.
In order to support arbitrary binary data in the JSON format, base64 encoding is used to turn the data into strings. It has to do some encoding dances to make sure that the bytes/str types are correct, so please open a new issue if you notice any issues.
This release also introduces the cachecontrol.heuristics.ExpiresAfter heuristic. This allows passing in arguments like a datetime.timedelta in order to configure that all responses are cached for the specific period of time.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This is an important release as it changes what is actually cached. Rather than caching requests' Response objects, we are now caching the underlying
This is an important release as it changes what is actually cached. Rather than caching requests' Response objects, we are now caching the underlying urllib3 response object. Also, the response will not be cached unless the response is actually consumed by the user.
These changes allowed the reintroduction of .raw support.
Huge thanks goes out to @dstufft for these excellent patches and putting so much work into CacheControl to allow cached responses to behave exactly as a normal response.
Nothing published for this version
- #16 _: All cached responses get None for a raw attribute. - #13 _ Switched to md5 encoded keys in file cache (via @mxjeff _) - #11 _ Fix timezones i
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →