Disable 404 caching

This commit is contained in:
Zef Hemel
2023-11-17 13:54:48 +01:00
parent d4d722103a
commit a984ab1f82
3 changed files with 4 additions and 7 deletions
+1
View File
@@ -438,6 +438,7 @@ export class HttpServer {
} catch (e: any) {
console.error("Error GETting file", name, e.message);
response.status = 404;
response.headers.set("Cache-Control", "no-cache");
response.body = "Not found";
}
},