All working nicely

This commit is contained in:
2026-04-16 21:29:31 -07:00
parent 3fef295b59
commit eb4dbb2448
9 changed files with 139 additions and 184 deletions

View File

@@ -39,7 +39,7 @@ async function serveFile(filename: string) {
const newResponse = await new Response(compressed);
// const newResponse = await new Response(file);
newResponse.headers.set('Cache-Control', 'no-transform');
newResponse.headers.set('Cache-Control', 'no-cache, no-transform');
newResponse.headers.set('Content-Encoding', 'br');
@@ -301,6 +301,7 @@ async function devServerWatchFiles() {
const cachedPath = path.replace(parentDir, '');
filepathResponseCache.delete(cachedPath);
console.log('Purging updated file:', cachedPath)
console.log(filepathResponseCache);
}
}