named maps tiles sending tile headers

This commit is contained in:
Raul Ochoa
2015-07-13 11:53:23 +02:00
parent f9554ec761
commit 316f08df08
+1 -1
View File
@@ -63,7 +63,7 @@ NamedMapsController.prototype.tile = function(req, res) {
self.surrogateKeysCache.tag(res, new NamedMapsCacheEntry(cdbUser, namedMapProvider.getTemplateName()));
res.setHeader('Content-Type', headers['Content-Type']);
res.setHeader('Cache-Control', 'public,max-age=7200,must-revalidate');
self.app.sendResponse(res, [tile, 200]);
self.app.sendWithHeaders(res, tile, 200, headers);
}
}
);