Browse Source

add header to disable response caching

pull/2/head
Nicolas Massé 9 years ago
parent
commit
313d19eb03
  1. 3
      server.js

3
server.js

@ -21,6 +21,9 @@ router.get("/info",function(req,res){
};
res.type('application/json')
.set("Connection", "close")
.header('Cache-Control', 'private, no-cache, no-store, must-revalidate')
.header('Expires', '-1')
.header('Pragma', 'no-cache')
.send(JSON.stringify(response))
.end();
});

Loading…
Cancel
Save