Cache extension tar requests
This commit is contained in:
parent
4ae2c81157
commit
567010e163
|
@ -197,7 +197,7 @@ export abstract class Server {
|
||||||
|
|
||||||
protected async getTarredResource(...parts: string[]): Promise<Response> {
|
protected async getTarredResource(...parts: string[]): Promise<Response> {
|
||||||
const filePath = this.ensureAuthorizedFilePath(...parts);
|
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 {
|
protected ensureAuthorizedFilePath(...parts: string[]): string {
|
||||||
|
|
Loading…
Reference in New Issue