Please linter

This commit is contained in:
Daniel García Aubert
2019-07-03 17:16:09 +02:00
parent bc29587c55
commit a374deaf30
@@ -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}`);