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
@@ -50,6 +50,7 @@ export class MemoryBuildCache implements DevBuildCache {
hash: processed.hash,
readable: processed.content,
size: processed.content.byteLength,
close: () => {},
};
}
@@ -65,6 +66,7 @@ export class MemoryBuildCache implements DevBuildCache {
hash: null,
size: stat.size,
readable: file.readable,
close: () => file.close(),
};
} catch (_err) {
return null;