diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index 61d42ed4..d9834a05 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -88,7 +88,7 @@ MapController.prototype.composeCreateMapMiddleware = function (useTemplate = fal incrementMapViewCount(this.metadataBackend), augmentLayergroupData(), getAffectedTables(this.pgConnection, this.layergroupAffectedTables), - setCacheChannel(), + setCacheChannelHeader(), setSurrogateKeyHeader(this.surrogateKeysCache), setLastModified(), setLastUpdatedTimeToLayergroup(), @@ -381,8 +381,8 @@ function getAffectedTables (pgConnection, layergroupAffectedTables) { }; } -function setCacheChannel () { - return function setCacheChannelMiddleware (req, res, next) { +function setCacheChannelHeader () { + return function setCacheChannelHeaderMiddleware (req, res, next) { const { affectedTables } = res.locals; if (req.method === 'GET') {