-
Notifications
You must be signed in to change notification settings - Fork 27
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
rfc 5861 (stale-if-error, stale-while-revalidate) #30
Conversation
stale-if error works fine in cacheable-request https://github.com/lukechilds/cacheable-request/issues/94. Without changing the code. I have created a test case locally. |
Sorry, GitHub UI is stupid and I didn't notice that my comments weren't public yet |
I also added an easy way to mock time. Tests were randomly breaking otherwise. |
Please don't add unrelated functionality to a PR. I don't like the mocking change. The |
I have reverted the mock. I missed to realise that there was already a way. Thanks for spotting that! I had to monkey patch |
Thank you |
solves #27