diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-11-25 16:51:22 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-11-25 16:51:22 +0100 |
commit | c74a042c680a594da06ff32f01b8bd08c4bb4fd6 (patch) | |
tree | 7d103bb03216d80172f49e5f33b65e9ffff8ec75 /modules | |
parent | fe162b1a8295226b7b80184965dbd930d9aa67e0 (diff) |
zelfoverhoor: Stop caching
Diffstat (limited to 'modules')
-rw-r--r-- | modules/zelfoverhoor/zelfoverhoor.js | 7 |
1 files changed, 7 insertions, 0 deletions
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"); }); |