You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
Ideally I'd want to throttle my requests that are not present in the cache (but serve them immediately if they've already been fetched). I've put below an extract from https://github.com/kuitos/axios-extensions that gives an idea of what I'm looking for
It seems like this cannot be done with the adapter returned by setupCache, given that it will try to find the query in the cache and then try to fetch via network (which allows to fallback on the stale data from the cache)
Is this somehow possible with axios-cache-adapter?
The text was updated successfully, but these errors were encountered:
jodoox
changed the title
Throttle calls if url not in cache
Throttle calls only if url not in cache
Apr 8, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Ideally I'd want to throttle my requests that are not present in the cache (but serve them immediately if they've already been fetched). I've put below an extract from https://github.com/kuitos/axios-extensions that gives an idea of what I'm looking for
It seems like this cannot be done with the adapter returned by
setupCache
, given that it will try to find the query in the cache and then try to fetch via network (which allows to fallback on the stale data from the cache)Is this somehow possible with
axios-cache-adapter
?The text was updated successfully, but these errors were encountered: