Client side cache for API requests (get/post)
Requires
- module:vue-local-storage.js
Methods
# static getCacheFromAPIRequestURL(url) → {Object}
Will retrieve a cached API response per URL+JWT if available (not expired)
Parameters:
| Name | Type | Description |
|---|---|---|
url |
*
|
|
options.beforeCacheFetch |
function
|
Will skip cache if false (Boolean) |
Object
# static setCacheFromAPIResponse(res)
Will cache API response per URL+JWT if a cache time was specified for that URL (cache-times.json)
Parameters:
| Name | Type | Description |
|---|---|---|
res |
*
|
- To Do:
-
- Cache also null/empty responses? (History APIs)