dio_cache_interceptor 2.0.0-beta.2
dio_cache_interceptor: ^2.0.0-beta.2 copied to clipboard
Dio HTTP cache interceptor with multiple stores respecting HTTP directives (ETag, Last-Modified, Cache-Control) with options.
2.0.0-beta.2 #
- fix: Hide FileCacheStore for web support.
- core: Remove flutter dependency.
2.0.0-beta.1 #
- Breaking: Moved from sqflite to Moor(:ffi) package for DbCacheStore.
- Breaking: Data stored with DbCacheStore is not compatible with previous versions.
- feat: Open support for linux, macOS, Windows and web platforms.
- core: Updated code to get rid of dart:io package for web platform.
1.0.0 #
- core: Same version as 0.6.0. Updating dependencies.
- core: Add missing analysis pedantic file.
- fix: Remaining minor warnings.
- core: No known issue. Bump to 1.0 to be prepared for null safety version.
0.6.0 #
- feat: Add
Cache-control
header for response directives (all values are stored). - feat: Add
Date
header. - feat: Add
Expires
header (if date is invalid (i.e. 0), date is considered expired to 1970-01-01). - feat: Cached response is now stored with absolute date (also used for max-age calculation).
- feat:
CacheStore
is no more required inCacheOptions
to ease subsequent requests with global options. - feat:
Response
object has nowCacheResponse.fromCache: true
extra boolean if coming from cache withCacheResponse.cacheKey
. - fix:
Response
extra are no more concatenated withRequestOptions
extra (useResponse.request.extra
for this). - fix(wording):
stalledOnly
renamed tostaleOnly
inCacheStore
. - various minor fixes and improvements.
Note:
This version should be backward compatible (data related) with 0.5.x versions (Please report any issues).
Even so, you're advised to clean stores to refresh entries with new headers.
With this version, 1.0 should be around the corner.
0.5.1 #
- fix: ETag conditional requesting with If-None-Match (Thanks @live9080).
- Update README.MD
0.5.0 #
- feat: add backup cache store
- core: add stores testing
- fix: file store associated fixes
0.4.0 #
- Add MemCacheStore. Cache with LRU strategy on RAM.
- Re-add 'exists' store method.
- Multiple fixes on maxStale (purge, get/set)
- Various cleanups.
0.3.0 #
- Add decrypt/encrypt methods to CacheOptions (no encryption by default. Private directories for stores are prefered for common usage).
- Remove 'exists' store method.
0.2.0 #
- Cancelled.
0.1.0 #
- Initial version
- DB cache store
- File cache store
- ETag
- Last-Modified
- Max stale
- CacheOptions