We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was wondering looking at the flowchart how the caching data is checked for stale state ?
The text was updated successfully, but these errors were encountered:
It solely depends on the age of the stored data.
If you set your expiration to one hour and if your data for the endpoint you're trying to reach is two hours old, it will be considered as stale.
So, if you have some connectivity, it will refresh your data and if you don't, it will return the stale one.
Sorry, something went wrong.
It doesnt update cache with this settings if i have connectivity
const API_OPTIONS = { fetchMethod: fetch, domains: { default: 'http://demo4345133.mockable.io' }, prefixes: {default: '/spica'}, debugAPI: true, printNetworkRequests: true, }; const API_SERVICES = { auth: { method: 'POST', path: 'auth', rawData: true, }, getStorageDefs: { method: 'POST', path: 'storage-defs', rawData: true, expiration: 5 * 60 * 1000 }, }; const apiPipeline = new APIpeline(API_OPTIONS, API_SERVICES, AsyncStorage);
Up @Exilz
No branches or pull requests
I was wondering looking at the flowchart how the caching data is checked for stale state ?
The text was updated successfully, but these errors were encountered: