History#
Unreleased#
Add support for regular expressions when using
urls_expire_after
1.0.1 (2023-03-24)#
Ignore
Cache-Control: must-revalidateandno-cacheresponse headers withcache_control=False
1.0.0 (2023-03-01)#
See all unreleased issues and PRs
🕗 Expiration & headers:
Add support for
Cache-Control: min-freshAdd support for
Cache-Control: max-staleAdd support for
Cache-Control: only-if-cachedAdd support for
Cache-Control: stale-if-errorAdd support for
Cache-Control: stale-while-errorAdd support for
VaryRevalidate for
Cache-Control: no-cacherequest or response headerRevalidate for
Cache-Control: max-age=0, must-revalidateresponse headersAdd an attribute
CachedResponse.revalidatedto indicate if a cached response was revalidated for the current request
⚙️ Session settings:
All settings that affect cache behavior can now be accessed and modified via
CachedSession.settingsAdd
always_revalidatesession setting to always revalidate before using a cached response (if a validator is available).Add
only_if_cachedsession setting to return only cached results without sending real requestsAdd
stale_while_revalidatesession setting to return a stale response initially, while a non-blocking request is sent to refresh the responseMake behavior for
stale_if_errorpartially consistent withCache-Control: stale-if-error: Add support for time values (int, timedelta, etc.) in addition toTrue/False
⚙️ Request settings:
Add
only_if_cachedoption toCachedSession.request()andsend()to return only cached results without sending real requestsAdd
refreshoption toCachedSession.request()andsend()to revalidate with the server before using a cached responseAdd
force_refreshoption toCachedSession.request()andsend()to awlays make and cache a new request regardless of existing cache contentsMake behavior for
expire_after=0consistent withCache-Control: max-age=0: if the response has a validator, save it to the cache but revalidate on use.The constant
requests_cache.DO_NOT_CACHEmay be used to completely disable caching for a request
💾 Backends:
DynamoDB:
For better read performance and usage of read throughput:
The cache key is now used as the partition key
Redirects are now cached only in-memory and not persisted
Cache size (
len()) now uses a fast table estimate instead of a full scan
Store responses in plain (human-readable) document format instead of fully serialized binary
Create default table in on-demand mode instead of provisioned
Add optional integration with DynamoDB TTL to improve performance for removing expired responses
This is enabled by default, but may be disabled
Decode JSON and text response bodies so the saved response can be fully human-readable/editable. May be disabled with
decode_content=False.
Filesystem:
The default file format has been changed from pickle to JSON
Decode JSON and text response bodies so the saved response can be fully human-readable/editable. May be disabled with
decode_content=False.
MongoDB:
Store responses in plain (human-readable) document format instead of fully serialized binary
Add optional integration with MongoDB TTL to improve performance for removing expired responses
Disabled by default. See ‘Backends: MongoDB’ docs for details.
Decode JSON and text response bodies so the saved response can be fully human-readable/editable. May be disabled with
decode_content=False.
Redis:
Add
ttl_offsetargument to add a delay between cache expiration and deletion
SQLite:
Improve performance for removing expired responses with
delete()Improve performance (slightly) with a large number of threads and high request rate
Add
count()method to count responses, with option to exclude expired responses (performs a fast indexed count instead of slower in-memory filtering)Add
size()method to get estimated size of the database (including in-memory databases)Add
sorted()method with sorting and other query optionsAdd
walparameter to enable write-ahead logging
SQLite, Redis, MongoDB, and GridFS:
Close open database connections when
CachedSessionis used as a contextmanager, or ifCachedSession.close()is called
↔️ Request matching:
Add serializer name to cache keys to avoid errors due to switching serializers
Always skip both cache read and write for requests excluded by
allowable_methods(previously only skipped write)Ignore and redact common authentication headers and request parameters by default. This provides some default recommended values for
ignored_parameters, to avoid accidentally storing common credentials in the cache. This will have no effect ifignored_parametersis already set.Support distinct matching for requests that differ only by a parameter in
ignored_parameters(e.g., for a request sent both with and without authentication)Support distinct matching for requests that differ only by duplicate request params (e.g,
a=1vs?a=1&a=2)
ℹ️ Convenience methods:
Add
expiredandinvalidarguments toBaseCache.delete()(to replaceremove_expired_responses())Add
urlsandrequestsarguments toBaseCache.delete()(to replacedelete_url())Add
older_thanargument toBaseCache.delete()to delete responses older than a given valueAdd
requestsargument toBaseCache.delete()to delete responses matching the given requestsAdd
BaseCache.contains()method to check for cached requests either by key or byrequests.RequestobjectAdd
urlargument toBaseCache.contains()method (to replacehas_url())Add
BaseCache.filter()method to get responses from the cache with various filtersAdd
BaseCache.reset_expiration()method to reset expiration for existing responsesAdd
BaseCache.recreate_keys()method to recreate cache keys for all previously cached responses (e.g., to preserve cache data after an update that changes request matching behavior)Update
BaseCache.urlsinto a method that takes optional filter params, and returns sorted unique URLs
ℹ️ Response attributes and type hints:
Add
OriginalResponsetype, which adds type hints torequests.Responseobjects for extra attributes added by requests-cache:cache_keycreated_atexpiresfrom_cacheis_expiredrevalidated
OriginalResponse.cache_keyandexpireswill be populated for any new response that was written to the cacheAdd request wrapper methods with return type hints for all HTTP methods (
CachedSession.get(),head(), etc.)Set
CachedResponse.cache_keyattribute for responses read from lower-level storage methods (items(),values(), etc.)
🧩 Compatibility fixes:
PyInstaller: Fix potential
AttributeErrordue to undetected imports when requests-cache is bundled in a PyInstaller packagerequests-oauthlib: Add support for header values as bytes for compatibility with OAuth1 features
redis-py: Fix forwarding connection parameters passed to
RedisCachefor redis-py 4.2 and python <=3.8pymongo: Fix forwarding connection parameters passed to
MongoCachefor pymongo 4.1 and python <=3.8cattrs: Add compatibility with cattrs 22.2
python:
Add tests and support for python 3.11
Add tests and support for pypy 3.9
🪲 Bugfixes:
Fix usage of memory backend with
install_cache()Fix an uncommon
OperationalError: database is lockedin SQLite backendFix issue on Windows with occasional missing
CachedResponse.created_attimestampAdd
CachedRequest.path_urlproperty for compatibility withRequestEncodingMixinFix potential
AttributeErrordue to undetected imports when requests-cache is bundled in a PyInstaller packageFix
AttributeErrorwhen attempting to unpickle aCachedSessionobject, and instead disable pickling by raising aNotImplementedErrorRaise an error for invalid expiration string values (except for headers containing httpdates)
Previously, this would be quietly ignored, and the response would be cached indefinitely
Fix behavior for
stale_if_errorif an error response code is added toallowable_codes
📦 Dependencies:
Replace
appdirswithplatformdirs
⚠️ Deprecations:
The following methods are deprecated, and will be removed in a future release. The recommended replacements are listed below. If this causes problems for you, please open an issue to discuss.
CachedSession.remove_expired_responses():BaseCache.delete(expired=True)BaseCache.remove_expired_responses():BaseCache.delete(expired=True)BaseCache.delete_url():BaseCache.delete(urls=[...])BaseCache.delete_urls():BaseCache.delete(urls=[...])BaseCache.has_key():BaseCache.contains()BaseCache.has_url():BaseCache.contains(url=...)BaseCache.keys():BaseCache.responses.keys()(for all keys), orBaseCache.filter()(for filtering options)BaseCache.values():BaseCache.responses.values()(for all values), orBaseCache.filter()(for filtering options)BaseCache.response_count():len(BaseCache.responses)(for all responses), orBaseCache.filter()(for filtering options)
⚠️ Breaking changes:
After initialization, cache settings can only be accesed and modified via
CachedSession.settings. Previously, some settings could be modified by setting them on eitherCachedSessionorBaseCache. In some cases this could silently fail or otherwise have undefined behavior.BaseCache.urlshas been replaced with a method that returns a list of URLs.DynamoDB table structure has changed. If you are using the DynamoDB backend, you will need to create a new table when upgrading to 1.0. See DynamoDB backend docs for more details.
Minor breaking changes:
The following changes only affect advanced or undocumented usage, and are not expected to impact most users:
The arguments
match_headersandignored_parametersmust be passed toCachedSession. Previously, these could also be passed to aBaseCacheinstance.The
CachedSessionbackendargument must be either an instance or string alias. Previously it would also accept a backend class.All serializer-specific
BaseStoragesubclasses have been removed, and merged into their respective parent classes. This includesSQLitePickleDict,MongoPickleDict, andGridFSPickleDict.All
BaseStoragesubclasses now have aserializerattribute, which will be unused if set toNone.
The
cache_controlmodule (added in0.7) has been split up into multiple modules in a newpolicysubpackage
0.9.8 (2023-01-13)#
Fix
DeprecationWarningraised byBaseCache.urlsReword ambiguous log message for
BaseCache.delete
Backport fixes from 1.0:
For custom serializers, handle using a cattrs converter that doesn’t support
omit_if_defaultRaise an error for invalid expiration string values (except for headers containing httpdates)
0.9.7 (2022-10-26)#
Backport compatibility fixes from 1.0:
PyInstaller: Fix potential
AttributeErrordue to undetected imports when requests-cache is bundled in a PyInstaller packagerequests-oauthlib: Add support for header values as bytes for compatibility with OAuth1 features
cattrs: Add compatibility with cattrs 22.2
python: Add tests to ensure compatibility with python 3.11
Fix
AttributeErrorwhen attempting to unpickle aCachedSessionobject, and instead disable pickling by raising aNotImplementedError
Add the following for forwards-compatibility with 1.0:
DeprecationWarningsto give an earlier notice for methods deprecated (not removed) in 1.0requests_cache.policysubpackage (will replacerequests_cache.cache_controlmodule)BaseCache.contains()BaseCache.delete()BaseCache.filter()CachedSession.settings
0.9.6 (2022-08-24)#
Backport fixes from 1.0:
Remove potentially problematic row count from
BaseCache.__str__()Remove upper version constraints for all non-dev dependencies
Make dependency specification consistent between PyPI and Conda-Forge packages
0.9.5 (2022-06-29)#
Backport fixes from 1.0:
Fix usage of memory backend with
install_cache()Add
CachedRequest.path_urlpropertyAdd compatibility with cattrs 22.1
0.9.4 (2022-04-22)#
Backport fixes from 1.0:
Fix forwarding connection parameters passed to
RedisCachefor redis-py 4.2 and python <=3.8Fix forwarding connection parameters passed to
MongoCachefor pymongo 4.1 and python <=3.8
0.9.3 (2022-02-22)#
Fix handling BSON serializer differences between pymongo’s
bsonand standalonebsoncodec.Handle
CorruptGridFileerror in GridFS backendFix cache path expansion for user directories (
~/...) for SQLite and filesystem backendsFix request normalization for request body with a list as a JSON root
Skip normalizing a JSON request body if it’s excessively large (>10MB) due to performance impact
Fix some thread safety issues:
Fix race condition in SQLite backend with dropping and recreating tables in multiple threads
Fix race condition in filesystem backend when one thread deletes a file after it’s opened but before it is read by a different thread
Fix multiple race conditions in GridFS backend
0.9.2 (2022-02-15)#
Fix serialization in filesystem backend with binary content that is also valid UTF-8
Fix some regression bugs introduced in 0.9.0:
Add support for
paramsas a positional argument toCachedSession.request()Add support for disabling expiration for a single request with
CachedSession.request(..., expire_after=-1)
0.9.1 (2022-01-15)#
Add support for python 3.10.2 and 3.9.10 (regarding resolving
ForwardReftypes during deserialization)Add support for key-only request parameters (regarding hashing request data for cache key creation)
Reduce verbosity of log messages when encountering an invalid JSON request body
0.9.0 (2022-01-01)#
See all issues and PRs for 0.9
🕗 Expiration & headers:
Use
Cache-Controlrequest headers by defaultAdd support for
Cache-Control: immutableAdd support for immediate expiration + revalidation with
Cache-Control: max-age=0andExpires: 0Reset expiration for cached response when a
304 Not Modifiedresponse is receivedSupport
expire_afterparam forCachedSession.send()
💾 Backends:
Filesystem:
Add better error message if parent path exists but isn’t a directory
Redis:
Add optional integration with Redis TTL to improve performance for removing expired responses
This is enabled by default, but may be disabled
SQLite:
Add better error message if parent path exists but isn’t a directory
🚀 Performance:
Fix duplicate read operation for checking whether to read from redirects cache
Skip unnecessary contains check if a key is in the main responses cache
Make per-request expiration thread-safe for both
CachedSession.request()andCachedSession.send()Some micro-optimizations for request matching
🪲 Bugfixes:
Fix regression bug causing headers used for cache key to not guarantee sort order
Handle some additional corner cases when normalizing request data
Add support for
BaseCachekeyword arguments passed along with a backend instanceFix issue with cache headers not being used correctly if
cache_control=Trueis used with anexpire_aftervalueFix license metadata as shown on PyPI
Fix
CachedResponseserialization behavior when using stdlibpicklein a custom serializer
0.8.1 (2021-09-15)#
Redact
ingored_parametersfromCachedResponse.url(if used for credentials or other sensitive info)Fix an incorrect debug log message about skipping cache write
Add some additional aliases for
DbDict, etc. so fully qualified imports don’t break
0.8.0 (2021-09-07)#
See all issues and PRs for 0.8
🕗 Expiration & headers:
Add support for conditional requests and cache validation using:
ETag+If-None-MatchheadersLast-Modified+If-Modified-Sinceheaders304 Not Modifiedresponses
If a cached response is expired but contains a validator, a conditional request will by sent, and a new response will be cached and returned only if the remote content has not changed
💾 Backends:
Filesystem:
Add
FileCache.cache_dirwrapper propertyAdd
FileCache.paths()methodAdd
use_cache_diroption to use platform-specific user cache directoryReturn
pathlib.Pathobjects for all file pathsUse shorter hashes for file names
SQLite:
Add
SQLiteCache.db_pathwrapper propertyAdd
use_memoryoption and support for in-memory databasesAdd
use_cache_diroption to use platform-specific user cache directoryReturn
pathlib.Pathobjects for all file paths
🚀 Performance:
Use
cattrsby default for optimized serializationSlightly reduce size of serialized responses
↔️ Request matching:
Allow
create_key()to optionally accept parameters forrequests.Requestinstead of a request objectAllow
match_headersto optionally accept a list of specific headers to matchAdd support for custom cache key callbacks with
key_fnparameterBy default use blake2 instead of sha256 for generating cache keys
ℹ️ Cache convenience methods:
Add
BaseCache.update()method as a shortcut for exporting to a different cache instanceAllow
BaseCache.has_url()anddelete_url()to optionally take parameters forrequests.Requestinstead of just a URL
📦 Dependencies:
Add
appdirsas a dependency for easier cross-platform usage of user cache directoriesUpdate
cattrsfrom optional to required dependencyUpdate
itsdangerousfrom required to optional (but recommended) dependencyRequire
requests2.22+ andurllib31.25.5+
⚠️ Backwards-compatible API changes:
The following changes are meant to make certain behaviors more obvious for new users, without breaking existing usage:
For consistency with
Cache-Control: stale-if-error, renameold_data_on_errortostale_if_errorGoing forward, any new options based on a standard HTTP caching feature will be named after that feature
For clarity about matching behavior, rename
include_get_headerstomatch_headersReferences in the docs to cache keys and related behavior are now described as ‘request matching’
For consistency with other backends, rename SQLite backend classes:
backends.sqlite.Db*->SQLiteCache,SQLiteDict,SQLitePickleDictAdd aliases for all previous parameter/class names for backwards-compatibility
⚠️ Deprecations & removals:
Drop support for python 3.6
Remove deprecated
coremoduleRemove deprecated
BaseCache.remove_old_entries()method
0.7.5 (2021-09-15)#
Fix incorrect location of
redirects.sqlitewhen using filesystem backendFix issue in which
redirects.sqlitewould get included in response paths with filesystem backendAdd aliases for forwards-compatibility with 0.8+
Backport fixes from 0.8.1
0.7.4 (2021-08-16)#
Fix an issue with httpdate strings from
Expiresheaders not getting converted to UTCFix a packaging issue with extra files added to top-level wheel directory
Fix some issues with parallelizing tests using pytest-xdist
0.7.3 (2021-08-10)#
SQLite backend:
Update
DbCache.clear()to succeed even if the database is corruptedUpdate
DbDict.bulk_delete()to split the operation into multiple statements to support deleting more items than SQLite’s variable limit (999)
Filesystem backend:
When using JSON serializer, pretty-print JSON by default
Add an appropriate file extension to cache files (
.json,.yaml,.pkl, etc.) by default; can be overridden or disabled with theextensionparameter.
Add a
BaseCache.delete_urls()method to bulk delete multiple responses from the cache based on request URL
0.7.2 (2021-07-21)#
Add support for
Response.next(to get the next request in a redirect chain) when 302 responses are cached directlyAdd a
CachedResponse.cache_keyattributeMake
CachedResponsea non-slotted class to allow client code to set arbitrary attributes on it
0.7.1 (2021-07-09)#
Fix a bug in which Cache-Control headers would be used unexpectedly
0.7.0 (2021-07-07)#
See all issues and PRs for 0.7
🕗 Expiration & headers:
Add optional support for the following request headers:
Cache-Control: max-ageCache-Control: no-cacheCache-Control: no-store
Add optional support for the following response headers:
Cache-Control: max-ageCache-Control: no-storeExpires
Add
cache_controloption toCachedSessionto enable setting expiration with cache headersAdd support for HTTP timestamps (RFC 5322) in
expire_afterparametersAdd support for bypassing the cache if
expire_after=0Add support for making a cache allowlist using URL patterns
💾 Backends:
Add a filesystem backend that stores responses as local files
DynamoDB:
Fix
DynamoDbDict.__iter__to return keys instead of valuesAccept connection arguments for
boto3.resource
MongoDB:
Remove usage of deprecated pymongo
Collection.find_and_modify()Accept connection arguments for
pymongo.MongoClient
Redis:
Accept connection arguments for
redis.Redis
SQLite:
Use persistent thread-local connections, and improve performance for bulk operations
Add
use_tempoption to store files in a temp directoryAccept connection arguments for
sqlite3.connect
💾 Serialization:
Add data models for all serialized objects
Add a JSON serializer
Add a YAML serializer
Add a BSON serializer
Add optional support for
cattrsAdd optional support for
ultrajson
↔️ Request matching:
Add support for caching multipart form uploads
Update
ignored_parametersto also exclude ignored request params, body params, or headers from cached response data (to avoid storing API keys or other credentials)Update
old_data_on_erroroption to also handle error response codesOnly log request exceptions if
old_data_on_erroris set
ℹ️ Convenience methods:
Add option to manually cache response objects with
BaseCache.save_response()Add
BaseCache.keys()andvalues()methodsAdd
BaseCache.response_count()method to get an accurate count of responses (excluding invalid and expired)Show summarized response details with
str(CachedResponse)Add more detailed repr methods for
CachedSession,CachedResponse, andBaseCacheUpdate
BaseCache.urlsto only skip invalid responses, not delete them (for better performance)
📦 Depedencies:
Add minimum
requestsversion of2.17Add
attrsas a dependency for improved serialization modelsAdd
cattrsas an optional dependencyAdd some package extras to install optional dependencies (via
pip install):requests-cache[all](to install everything)requests-cache[bson]requests-cache[json]requests-cache[dynamodb]requests-cache[mongodb]requests-cache[redis]
📦 Compatibility and packaging:
requests-cache is now fully typed and PEP-561 compliant
Fix some compatibility issues with
requests 2.17and2.18Run pre-release tests for each supported version of
requestsPackaging is now managed by Poetry
For users, installation still works the same.
For developers, see Contributing Guide for details
0.6.4 (2021-06-04)#
Fix a bug in which
filter_fn()would get called onresponse.requestinstead ofresponse
0.6.3 (2021-04-21)#
Fix false positive warning with
include_get_headersFix handling of
decode_contentparameter forCachedResponse.raw.read()Replace deprecated pymongo
Collection.count()withestimated_document_count()
0.6.2 (2021-04-14)#
Explicitly include docs, tests, and examples in sdist
0.6.1 (2021-04-13)#
Handle errors due to invalid responses in
BaseCache.urlsAdd recently renamed
BaseCache.remove_old_entries()back, as an alias with a DeprecationWarningMake parent dirs for new SQLite databases
Add
aws_access_key_idandaws_secret_access_keykwargs toDynamoDbDictUpdate
GridFSPickleDict.__delitem__to raise a KeyError for missing itemsDemote most
logging.infostatements to debug levelExclude test directory from
find_packages()Make integration tests easier to run and/or fail more quickly in environments where Docker isn’t available
0.6.0 (2021-04-09)#
See all issues and PRs for 0.6
Thanks to Code Shelter and contributors for making this release possible!
🕗 Expiration:
Cached responses are now stored with an absolute expiration time, so
CachedSession.expire_afterno longer applies retroactively. To reset expiration for previously cached items, see below:Add support for overriding original expiration in
CachedSession.remove_expired_responses()Add support for setting expiration for individual requests
Add support for setting expiration based on URL glob patterns
Add support for setting expiration as a
datetimeAdd support for explicitly disabling expiration with
-1(SinceNonemay be ambiguous in some cases)
💾 Backends:
SQLite:
Allow passing user paths (
~/path-to-cache) to database file withdb_pathparamAdd
timeoutparameter
All: Make default table names consistent across backends (
'http_cache')
💾 Serialization:
Note: Due to the following changes, responses cached with previous versions of requests-cache will be invalid. These old responses will be treated as expired, and will be refreshed the next time they are requested. They can also be manually converted or removed, if needed (see notes below).
Add example script to convert an existing cache from previous serialization format to new one
When running
remove_expired_responses(), also remove responses that are invalid due to updated serialization formatAdd
CachedResponseclass to wrap cachedrequests.Responseobjects, which makes additional cache information available to client codeAdd
CachedHTTPResponseclass to wrapurllib3.response.HTTPResponseobjects, available viaCachedResponse.rawRe-construct the raw response on demand to avoid storing extra data in the cache
Improve emulation of raw request behavior used for iteration, streaming requests, etc.
Add
BaseCache.urlsproperty to get all URLs persisted in the cacheAdd optional support for
itsdangerousfor more secure serialization
Other features:
Add
CacheMixinclass to make the features ofCachedSessionusable as a mixin class, for compatibility with other requests-based libraries.Add
HEADto defaultallowable_methods
📗 Docs & Tests:
Add type annotations to main functions/methods in public API, and include in documentation on readthedocs
Add Contributing Guide, Security info, and more examples & detailed usage info in User Guide and Advanced Usage sections.
Increase test coverage and rewrite most tests using pytest
Add containerized backends for both local and CI integration testing
🪲 Bugfixes:
Fix caching requests with data specified in
jsonparameterFix caching requests with
verifyparameterFix duplicate cached responses due to some unhandled variations in URL format
Fix usage of backend-specific params when used in place of
cache_nameFix potential TypeError with
DbPickleDictinitializationFix usage of
CachedSession.cache_disabledif used within another contextmanagerFix non-thread-safe iteration in
BaseCacheFix
get_cache(),clear(), andremove_expired_responses()so they will do nothing if requests-cache is not installedUpdate usage of deprecated MongoClient
save()methodReplace some old bugs with new and different bugs, just to keep life interesting
📦 Depedencies:
Add
itsdangerousas a dependency for secure serializationAdd
url-normalizeas a dependency for better request normalization and reducing duplications
⚠️ Deprecations & removals:
Drop support for python 2.7, 3.4, and 3.5
Deprecate
coremodule; all imports should be made from top-level package insteade.g.:
from requests_cache import CachedSessionImports
from requests_cache.corewill raise aDeprecationWarning, and will be removed in a future release
Rename
BaseCache.remove_old_entries()toremove_expired_responses(), to match its wrapper methodCachedSession.remove_expired_responses()
0.5.2 (2019-08-14)#
Fix DeprecationWarning from collections #140
0.5.1 (2019-08-13)#
Remove Python 2.6 Testing from travis #133
Fix DeprecationWarning from collections #131
vacuum the sqlite database after clearing a table #134
Fix handling of unpickle errors #128
0.5.0 (2019-04-18)#
Project is now added to Code Shelter
Add gridfs support, thanks to @chengguangnan
Add dynamodb support, thanks to @ar90n
Add response filter #104, thanks to @christopher-dG
Fix bulk_commit #78
Fix remove_expired_responses missed in init.py #93
Fix deprecation warnings #122, thanks to mbarkhau
Drop support for python 2.6
0.4.13 (2016-12-23)#
Support PyMongo3, thanks to @craigls #72
Fix streaming releate issue #68
0.4.12 (2016-03-19)#
Fix ability to pass backend instance in
install_cache#61
0.4.11 (2016-03-07)#
ignore_parametersfeature, thanks to @themiurgo and @YetAnotherNerd (#52, #55)More informative message for missing backend dependencies, thanks to @Garrett-R (#60)
0.4.10 (2015-04-28)#
Better transactional handling in sqlite #50, thanks to @rgant
Compatibility with streaming in requests >= 2.6.x
0.4.9 (2015-01-17)#
expire_afternow also acceptstimedelta, thanks to @femtotraderAdded Ability to include headers to cache key (
include_get_headersoption)Added string representation for
CachedSession
0.4.8 (2014-12-13)#
Fix bug in reading cached streaming response
0.4.7 (2014-12-06)#
Fix compatibility with Requests > 2.4.1 (json arg, response history)
0.4.6 (2014-10-13)#
Monkey patch now uses class instead lambda (compatibility with rauth)
Normalize (sort) parameters passed as builtin dict
0.4.5 (2014-08-22)#
Requests==2.3.0 compatibility, thanks to @gwillem
0.4.4 (2013-10-31)#
Check for backend availability in install_cache(), not at the first request
Default storage fallbacks to memory if
sqliteis not available
0.4.3 (2013-09-12)#
Fix
response.from_cachenot set in hooks
0.4.2 (2013-08-25)#
Fix
UnpickleableErrorfor gzip responses
0.4.1 (2013-08-19)#
requests_cache.enabled()context managerCompatibility with Requests 1.2.3 cookies handling
0.4.0 (2013-04-25)#
Redis backend. Thanks to @michaelbeaumont
Fix for changes in Requests 1.2.0 hooks dispatching
0.3.0 (2013-02-24)#
Support for
Requests1.x.xCachedSessionMany backward incompatible changes
0.2.1 (2013-01-13)#
Fix broken PyPi package
0.2.0 (2013-01-12)#
Last backward compatible version for
Requests0.14.2
0.1.3 (2012-05-04)#
Thread safety for default
sqlitebackendTake into account the POST parameters when cache is configured with ‘POST’ in
allowable_methods
0.1.2 (2012-05-02)#
Reduce number of
sqlitedatabase write operationsfast_saveoption forsqlitebackend
0.1.1 (2012-04-11)#
Fix: restore responses from response.history
Internal refactoring (
MemoryCache->BaseCache,reduce_responseandrestore_responsemoved toBaseCache)connectionoption forMongoCache
0.1.0 (2012-04-10)#
initial PyPI release