Skip to content

Commit 567010e

Browse files
committed
Cache extension tar requests
1 parent 4ae2c81 commit 567010e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export abstract class Server {
197197

198198
protected async getTarredResource(...parts: string[]): Promise<Response> {
199199
const filePath = this.ensureAuthorizedFilePath(...parts);
200-
return { stream: tarFs.pack(filePath), filePath, mime: "application/tar" };
200+
return { stream: tarFs.pack(filePath), filePath, mime: "application/tar", cache: true };
201201
}
202202

203203
protected ensureAuthorizedFilePath(...parts: string[]): string {

0 commit comments

Comments
 (0)