Please linter
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user