This commit is contained in:
Daniel García Aubert 2019-07-09 15:44:34 +02:00
parent bca723bcf3
commit 619cad9c35

View File

@ -24,7 +24,7 @@ module.exports = function setCacheControlHeader ({
const directives = [ 'public' ];
if (everyAffectedTablesCanBeInvalidated(affectedTables)) {
if (everyAffectedTableCanBeInvalidated(affectedTables)) {
directives.push(`max-age=${ttl}`);
} else {
directives.push(`max-age=${fallbackTtl}`);
@ -41,7 +41,7 @@ module.exports = function setCacheControlHeader ({
};
};
function everyAffectedTablesCanBeInvalidated (affectedTables) {
function everyAffectedTableCanBeInvalidated (affectedTables) {
const skipNotUpdatedAtTables = false;
const skipAnalysisCachedTables = true;