Adds custom cache control header for named map static images

This commit is contained in:
Raul Ochoa
2015-04-28 16:14:19 +02:00
parent fde680450f
commit 1a66f96379
@@ -189,6 +189,7 @@ NamedStaticMapsController.prototype.named = function(req, res) {
self.app.sendError(res, err, self.app.findStatusCode(err), 'STATIC_VIZ_MAP', err);
} else {
res.setHeader('Content-Type', headers['Content-Type'] || 'image/' + format);
res.setHeader('Cache-Control', 'public,max-age=7200,must-revalidate');
self.app.sendResponse(res, [image, 200]);
}
}