- Fix bug in which reponse header
Expires
was used for cache expiration even with cache_control=False
- Fix bug in which HTTP dates parsed from response headers weren't converted to UTC
- Add handling for invalid timestamps in
CachedResponse.is_expired
- Fix handling of
CachedResponse.encoding
when the response body is None
- Fix initialziation of
SQLiteBackend
so it can be created outside main event loop
- Add optional support for the following request headers:
Cache-Control: max-age
Cache-Control: no-cache
Cache-Control: no-store
- Add optional support for the following response headers:
Cache-Control: max-age
Cache-Control: no-store
Expires
- Add support for HTTP timestamps (RFC 5322) in
expire_after
parameters
- Add a
use_temp
option to SQLiteBackend
to use a tempfile
- Packaging is now handled with Poetry. For users, installation still works the same. For developers,
see Contributing Guide for details
- Published package on conda-forge
See all issues & PRs for v0.3
- Add async implementation of DynamoDb backend
- Add support for expiration for individual requests
- Add support for expiration based on URL patterns
- Add support for serializing/deserializing
ClientSession.links
- Add case-insensitive response headers for compatibility with aiohttp.ClientResponse.headers
- Add optional integration with
itsdangerous
for safer serialization
- Add
CacheBackend.get_urls()
to get all urls currently in the cache
- Add some default attributes (
from_cache, is_expired
, etc.) to returned ClientResponse objects
- Allow passing all backend-specific connection kwargs via CacheBackend
- Add support for
json
request body
- Convert all
keys()
and values()
methods into async generators
- Fix serialization of Content-Disposition
- Fix filtering ignored parameters for request body (
data
and json
)
- Add user guide, more examples, and other project docs
See all issues & PRs for v0.2
- Refactor SQLite backend to use
aiosqlite
for async cache operations
- Refactor MongoDB backend to use
motor
for async cache operations
- Refactor Redis backend to use
aiosqlite
for async cache operations
- Add integration tests and
docker-compose
for local test servers
- Initial fork from
requests-cache
- First pass at a general refactor and conversion from
requests
to aiohttp
- Basic features are functional, but some backends do not actually operate asynchronously