Closed she11sh0cked closed 10 months ago
Please provide the debugging logs as required in this issue template. Also a reproducible example is preferred.
Thanks! Iv'e attached the debugging logs and created a reproducible example.
While I created the repro I think I found the issue. The cache works as expected when I remove the cache-control: "private, no-cache, no-store, must-revalidate"
, as described in the README and code
What happened?
I've got a question on how to properly use
axios-cache-interceptor
in an offline context.Basically I'm working on an application that isn't guaranteed to have access to the API at all times, but I want my tools to be transparent to that.
Currently my issue is, that the cache seems to be invalidated before the request was made successfully, which leaves me with no data.
What I've done to address this is setting the
ttl
to the integer maximum.So i guess my question would be if there is a better way to get proper offline support or if this is out-of-scope.
axios-cache-interceptor version
v1.5.1
Node / Browser Version
Node v20.11.0
Axios Version
v1.6.5
What storage is being used
Another one
Relevant debugging log output