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

Lower default minimumCacheTime to 60s #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sandinmyjoints
Copy link

@sandinmyjoints sandinmyjoints commented Nov 27, 2019

Fixes vercel/fetch#35

I looked into invalidating the cache on error from @zeit/fetch but even doing that would require changes afaict, because the call to resolve doesn't take any options. This seemed like a more straightforward fix, and it still allows for users of this lib to specify a higher minimum, while working OOTB for a greater number of DNS configurations (ie, it will work for those that have 60s TTL like AWS ELBs).

@sandinmyjoints
Copy link
Author

Bump.

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

Successfully merging this pull request may close these issues.

Allow passing configurable minimumCacheTime through to dns-cached-resolve
1 participant