From c6b89cae8fcef56b6420698f311a8955919037c6 Mon Sep 17 00:00:00 2001 From: Giacomo Cavalieri Date: Thu, 4 Jan 2024 19:17:19 +0100 Subject: =?UTF-8?q?=F0=9F=94=80=20Disable=20caching=20for=20lustre/try=20(?= =?UTF-8?q?#32)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Hayleigh Thompson --- src/http.ffi.mjs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/http.ffi.mjs') diff --git a/src/http.ffi.mjs b/src/http.ffi.mjs index 3f59933..d1989bf 100644 --- a/src/http.ffi.mjs +++ b/src/http.ffi.mjs @@ -30,6 +30,9 @@ const html = ` `; const server = Http.createServer((req, res) => { + res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, private'); + res.setHeader('Pragma', 'no-cache'); + switch (true) { case req.url === "/": { res.setHeader("Content-Type", "text/html"); -- cgit v1.2.3