Skip to content

Commit

Permalink
fix: cache dns (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Bodin committed Jul 11, 2021
1 parent 99be307 commit e80d437
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/request.ts
Expand Up @@ -31,6 +31,9 @@ export async function request<TRes>(
...(opts.headers || {}),
'user-agent': USER_AGENT,
},
timeout: 15000,
dnsCache: true,
dnsLookupIpVersion: 'ipv4',
agent: {
http: httpAgent,
https: httpsAgent,
Expand Down

0 comments on commit e80d437

Please sign in to comment.