dio_cache_interceptor 3.0.0
dio_cache_interceptor: ^3.0.0 copied to clipboard
Dio HTTP cache interceptor with multiple stores respecting HTTP directives (or not).
3.0.0 #
- core: Moved DB Hive cache stores to their respective packages.
- fix: import of file_cache_store.
2.3.1 #
- fix: Cache-Control parsing. Dio does not expand multi valued headers.
2.3.0 #
- feat:
allowPostMethodadded toCacheOptions.
2.2.0 #
- feat: Cache-Control: max-age as cache trigger added.
- core: update README.md.
2.1.1 #
- fix: refreshForceCache policy added. Get parity with refresh/request and refreshForceCache/forceCache.
2.1.0 #
- feat: Add Hive as cache store.
2.0.0 #
- core: Update dio to 4.0.0.
- Renamed
cacheStoreForcetoforceCache. - Renamed
cacheStoreNotonoCache. - Make
CacheOptions.storerequired but still with optional value.
2.0.0-rc.1 #
- core: Update dio to 4.0.0-prev1.
- fix: update cache header values on 304 (keeping in sync freshness of our cache content).
- fix: return cache on socket exception with hitCacheOnErrorExcept.
- fix: date header parsing exception not catched.
2.0.0-beta.7 #
- core: Update dio to 4.0.0-beta7.
- Breaking: Remove now useless/confusing
cacheFirstpolicy with improved freshness checks. - Breaking: Rename
requestFirsttorequest. - Small code improvements.
- Update README.MD
2.0.0-beta.6 #
- core: Update dio to 4.0.0-beta6.
- Small code improvement / clean-up.
- Feat: Add boolean
fromNetworkto extra inResponse. - Fix: Cache-Control max-age precedence over Expires header.
- Completed test coverage.
- Now waiting for Dio to get out of beta stage or issue reports!
2.0.0-beta.5 #
- core: Update dio to 4.0.0-beta5.
- Wrap decrypt/encrypt functions to
CacheCipher. - Add decent test coverage (still WIP).
2.0.0-beta.4 #
- core: Update dio to 4.0.0-beta4.
- Add missing
copyWithmethod inCacheOptionsto allow single option change. - Small improvements & fixes
2.0.0-beta.3 #
- core: Support null safety
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-controlheader for response directives (all values are stored). - feat: Add
Dateheader. - feat: Add
Expiresheader (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:
CacheStoreis no more required inCacheOptionsto ease subsequent requests with global options. - feat:
Responseobject has nowCacheResponse.fromCache: trueextra boolean if coming from cache withCacheResponse.cacheKey. - fix:
Responseextra are no more concatenated withRequestOptionsextra (useResponse.request.extrafor this). - fix(wording):
stalledOnlyrenamed tostaleOnlyinCacheStore. - 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