From a374deaf301e1c0dffd812247c521f26bbc4753c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 3 Jul 2019 17:16:09 +0200 Subject: [PATCH] Please linter --- lib/cartodb/api/middlewares/cache-control-header.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}`);