Skip to content

Commit

Permalink
Use max DNS TTL
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed May 9, 2021
1 parent 804595d commit 81b71e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/misc/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export async function getHtml(url: string, accept = 'text/html, */*', timeout =
}

const cache = new CacheableLookup({
errorTtl: 30,
maxTtl: 3600, // 1hours
errorTtl: 30, // 30secs
lookup: false, // nativeのdns.lookupにfallbackしない
});

Expand Down

0 comments on commit 81b71e2

Please sign in to comment.