Skip to content
New issue

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

A way to force a new fetch but still preserving the TTL to store the newly fetched data. #5

Open
silverbucket opened this issue Sep 23, 2014 · 0 comments

Comments

@silverbucket
Copy link

I've got a situation where sometimes the GET request returns successful but the data is empty. This means subsequent requests return a cached empty object.

I can force a re-GET by setting the options.caching.ttl = 0 however, from what I could tell in the code, this also means the results will not be stored.

I'd like a way to force a new fetch to be made, regardless of the TTL on the existing cache, and when the request is complete, store it as normal with the normal TTL already set.

Is there an existing way to do this, am I going about it wrong, or do you agree this would be a useful feature? (If you agree, then I am willing to submit a pull request, just wanted to make sure it was necessary first).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant