fix: etag caching HTTP headers (#2504)

This commit is contained in:
Marvin Hagemeister
2024-06-25 10:21:43 +02:00
committed by GitHub
parent 0f6b4f624f
commit 72811da29b
4 changed files with 25 additions and 10 deletions
+2
View File
@@ -18,6 +18,7 @@ export interface StaticFile {
hash: string | null;
size: number;
readable: ReadableStream<Uint8Array> | Uint8Array;
close(): void;
}
export interface BuildCache {
@@ -101,6 +102,7 @@ export class ProdBuildCache implements BuildCache {
hash: info.hash,
size: stat.size,
readable: file.readable,
close: () => file.close(),
};
}