Merge pull request #332 from CartoDB/static-namedmaps-x-cache

Keep x-cache-channel in named map static maps
This commit is contained in:
Raul Ochoa
2015-09-21 22:40:42 +02:00
@@ -121,7 +121,6 @@ NamedStaticMapsController.prototype.named = function(req, res) {
// added by createLayergroup
cacheChannel = res.header('X-Cache-Channel');
res.removeHeader('X-Cache-Channel');
self.surrogateKeysCache.tag(res, new NamedMapsCacheEntry(cdbUser, template.name));
layergroupId = layergroup.layergroupid.split(":")[0];