From 567010e163f184744b518fe83cd69b61c43dc73c Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 11 Oct 2019 14:28:02 -0500 Subject: [PATCH] Cache extension tar requests --- src/node/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/server.ts b/src/node/server.ts index c73498c9..5e3b7cdf 100644 --- a/src/node/server.ts +++ b/src/node/server.ts @@ -197,7 +197,7 @@ export abstract class Server { protected async getTarredResource(...parts: string[]): Promise { const filePath = this.ensureAuthorizedFilePath(...parts); - return { stream: tarFs.pack(filePath), filePath, mime: "application/tar" }; + return { stream: tarFs.pack(filePath), filePath, mime: "application/tar", cache: true }; } protected ensureAuthorizedFilePath(...parts: string[]): string {