You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed CachedResponse.read() to be consistent with ClientResponse.read() by allowing to call read() multiple times. (#289)
Now a warning is raised when a cache backend is accessed after disconnecting (after exiting the CachedSession context manager). (#241)
Dropped Python 3.8 support due to the EOL.
0.12.4 (2024-10-30)
Fixed a bug that allowed users to use save_response() and from_client_response() with an incorrect expires argument without throwing any warnings or errors.
0.12.3 (2024-10-04)
Revert some changes from v0.12.0, and add alternative fix for compatibility with aiohttp 3.10.6+
0.12.2 (2024-10-02)
Fixed a regression in v0.12.0 when the request_info property was unavailable on a cached response. (!260)
0.12.1 (2024-10-02)
Fixed get_encoding() access after unpickling. (#256)
0.12.0 (2024-10-01)
Add support for Python 3.13
Fix CachedResponse.is_expired check to consider any errors as "expired". (!252)
Fix compatibility with aiohttp 3.10.6+ (#251)
Now CachedResponse inherits from the aiohttp.ClientResponse.
0.11.1 (2024-08-01)
Fix compatibility with aiosqlite 0.20
Add complete type hints for CachedSession.get(), post(), etc. for compatibility with aiohttp 3.10
Remove usage of datetime.utcnow() (deprecated in python 3.12)
0.11.0 (2024-02-08)
Add support for Python 3.12.
Add a Docker Compose file with DragonflyDB service that can be used as a Redis drop-in replacement.
Add minor performance improvements for MongoDB backend. (!203)
Deprecations and Removals
Drop support for Python 3.7.
0.10.0 (2023-10-30)
Add support for conditional requests with ETag and Last-Modified
If a DynamoDB item exceeds the max size (400KB), skip writing to the cache and log a warning instead of raising an error
Add CachedResponse.closed attribute for compatibility with aiohttp.ClientResponse
Close aiosqlite thread if it's still running when session object is deleted
Move redirects cache for FileBackend into same directory as cached response files
Fix issue in which CachedSession.disabled() prevents only cache read but not write
0.9.1 (2023-09-20)
Remove unintended optional dependencies in both PyPI and conda-forge packages
0.9.0 (2023-09-19)
Add compatibility with Sentry python SDK
Add autoclose option to CacheBackend to close backend connections when the session context exits.
Enabled by default for SQLite backend, and disabled by default for other backends.
python-forge is no longer required and is now an optional dependency
Fix reading response content multiple times for memory backend
0.8.2 (2023-07-14)
Add some missing type annotations to backend classes
Fix passing connection parameters to MongoDB backend
Revert closing backend connections on session context exit
Fix CachedResponse.close() method to match ClientResponse.close()
0.8.1 (2023-01-05)
For SQLite backend, close database connection on ClientSession context exit
0.8.0 (2022-12-29)
Lazily initialize and reuse SQLite connection objects
Fix AttributeError when using a response cached with an older version of attrs
Fix concurrent usage of SQLiteCache.bulk_commit()
Add fast_save option for SQLiteCache (PRAGMA setting to improve write performance, with some tradeoffs)
0.7.3 (2022-07-31)
Remove upper version constraint for attrs dependency
0.7.2 (2022-07-13)
Fix TypeError bug when using expire_after param with CachedSession._request()
0.7.1 (2022-06-22)
Fix possible deadlock with SQLiteCache.init_db() and clear()