Use a more aggressive cache control header for node status endpoint

This commit is contained in:
Raul Ochoa
2016-05-05 17:52:37 +02:00
parent 73aa159b98
commit c77ea49594
3 changed files with 116 additions and 1 deletions
+4 -1
View File
@@ -116,7 +116,10 @@ LayergroupController.prototype.analysisNodeStatus = function(req, res) {
if (err) {
self.sendError(req, res, err, 'GET NODE STATUS');
} else {
self.sendResponse(req, res, nodeStatus, 200);
self.sendResponse(req, res, nodeStatus, 200, {
'Cache-Control': 'public,max-age=5',
'Last-Modified': new Date().toUTCString()
});
}
}
);