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

How to check if a non-blocking revalidation should happen? #41

Open
mmkal opened this issue May 10, 2023 · 0 comments
Open

How to check if a non-blocking revalidation should happen? #41

mmkal opened this issue May 10, 2023 · 0 comments

Comments

@mmkal
Copy link

mmkal commented May 10, 2023

Hi, love this library! A great addition would be a brief sample implementation of how to use policy.useStaleWhileRevalidate() in the readme. I haven't quite got my head around how to use it in combination with satisfiesWithoutRevalidation.

Basically, I'd like to know when to kick off a background request in order to update the cache, but it's still ok to use the value that's already in the cache.

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