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
If you are using the client in a browser, you will have the caching behavior of the browser. This works really great. Given that your server sends proper Cache-Control-Headers, you will for example easily fetch a latest version only if the server wants you to fetch it (with If-Not-Modified-Headers and 403 Not Modified responses).
But it could be helpful to add an extra cache, if the server is not under control of the client.
The first call to
agent.get()
should store the response (or the parsed result) and subsequent calls should return the cached result.Perhaps supply a
.refresh()
or.reset()
method to delete the cache?!The text was updated successfully, but these errors were encountered: