diff --git a/lib/cartodb/api/middlewares/cache-control-header.js b/lib/cartodb/api/middlewares/cache-control-header.js index 38d05baf..7171c44a 100644 --- a/lib/cartodb/api/middlewares/cache-control-header.js +++ b/lib/cartodb/api/middlewares/cache-control-header.js @@ -2,7 +2,7 @@ const ONE_YEAR_IN_SECONDS = 60 * 60 * 24 * 365; const FIVE_MINUTES_IN_SECONDS = 60 * 5; -const FALLBACK_TTL = global.environment.varnish.fallbackTtl || FIVE_MINUTES_IN_SECONDS +const FALLBACK_TTL = global.environment.varnish.fallbackTtl || FIVE_MINUTES_IN_SECONDS; module.exports = function setCacheControlHeader ({ ttl = ONE_YEAR_IN_SECONDS, @@ -22,7 +22,7 @@ module.exports = function setCacheControlHeader ({ return next(); } - const directives = [ 'public' ] + const directives = [ 'public' ]; if (affectedTables && !affectedTables.getTables().some(table => !!table.updated_at)) { directives.push(`max-age=${fallbackTtl}`);