From c74a042c680a594da06ff32f01b8bd08c4bb4fd6 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 25 Nov 2017 16:51:22 +0100 Subject: zelfoverhoor: Stop caching --- modules/zelfoverhoor/zelfoverhoor.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules') diff --git a/modules/zelfoverhoor/zelfoverhoor.js b/modules/zelfoverhoor/zelfoverhoor.js index 766bffd..8663b2c 100644 --- a/modules/zelfoverhoor/zelfoverhoor.js +++ b/modules/zelfoverhoor/zelfoverhoor.js @@ -97,6 +97,13 @@ module.exports=function(app,io,_moddir){ persistDB(); } + app.all("/zelfoverhoor*",function(req,res,next){ + res.header("Cache-Control","private, no-cache, no-store, must-revalidate"); + res.header("Expires","-1"); + res.header("Pragma","no-cache"); + next(); + }); + app.get("/zelfoverhoor",function(req,res){ res.sendFile(moddir+"/index.html"); }); -- cgit v1.2.3-70-g09d2