mirror of
https://github.com/cdr/code-server.git
synced 2025-12-07 08:52:16 +01:00
Cache extension tar requests
This commit is contained in:
parent
4ae2c81157
commit
567010e163
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue