Browse Source

add header to disable response caching

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

2
server.js

@ -20,7 +20,7 @@ router.get("/info",function(req,res){
podName: process.env["HOSTNAME"], podName: process.env["HOSTNAME"],
}; };
res.type('application/json') res.type('application/json')
.set("Connection", "close") .header("Connection", "close")
.header('Cache-Control', 'private, no-cache, no-store, must-revalidate') .header('Cache-Control', 'private, no-cache, no-store, must-revalidate')
.header('Expires', '-1') .header('Expires', '-1')
.header('Pragma', 'no-cache') .header('Pragma', 'no-cache')

Loading…
Cancel
Save