aboutsummaryrefslogtreecommitdiff
path: root/src/http.ffi.mjs
diff options
context:
space:
mode:
authorGiacomo Cavalieri <giacomo.cavalieri@icloud.com>2024-01-04 19:17:19 +0100
committerGitHub <noreply@github.com>2024-01-04 18:17:19 +0000
commitc6b89cae8fcef56b6420698f311a8955919037c6 (patch)
tree766cc0ed491dcdaa8cecb31fa73c7f45a4da37c7 /src/http.ffi.mjs
parenta38889c285bef95359e36c93da37221126f96556 (diff)
downloadlustre-c6b89cae8fcef56b6420698f311a8955919037c6.tar.gz
lustre-c6b89cae8fcef56b6420698f311a8955919037c6.zip
🔀 Disable caching for lustre/try (#32)
Co-authored-by: Hayleigh Thompson <me@hayleigh.dev>
Diffstat (limited to 'src/http.ffi.mjs')
-rw-r--r--src/http.ffi.mjs3
1 files changed, 3 insertions, 0 deletions
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 = `<!DOCTYPE html>
</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");