- 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.
- fix: ETag conditional requesting with If-None-Match (Thanks @live9080).
- Update README.MD
- feat: add backup cache store
- core: add stores testing
- fix: file store associated fixes
- Add MemCacheStore. Cache with LRU strategy on RAM.
- Re-add 'exists' store method.
- Multiple fixes on maxStale (purge, get/set)
- Various cleanups.
- Add decrypt/encrypt methods to CacheOptions (no encryption by default. Private directories for stores are prefered for common usage).
- Remove 'exists' store method.
- Cancelled.
- Initial version
- DB cache store
- File cache store
- ETag
- Last-Modified
- Max stale
- CacheOptions