Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Use dns cache for requests

Chocobozzzbbb3be686ad9
diff --git a/server/helpers/requests.ts b/server/helpers/requests.ts
index d3c83d26e2..36e69458e5 100644
--- a/server/helpers/requests.ts
+++ b/server/helpers/requests.ts
@@ -185,6 +185,7 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
return {
method: options.method,
+ dnsCache: true,
json: options.json,
searchParams: options.searchParams,
timeout: options.timeout ?? REQUEST_TIMEOUT,