Revert the server file watchign changes as I think they were not needed

This commit is contained in:
2026-04-16 21:35:46 -07:00
parent eb4dbb2448
commit 4dda9af788

View File

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