diff --git a/src/create-object.js b/src/create-object.js index e263108..18923c1 100644 --- a/src/create-object.js +++ b/src/create-object.js @@ -42,9 +42,7 @@ module.exports = function createObject(options) { /* If the size changes, the cache should also be implicitly busted. */ this.bustSize(); this.bustCache(); - } - - if (Object.keys(transformedProperties).some(property => this.cacheBustingProperties.includes(property))) { + } else if (Object.keys(transformedProperties).some(property => this.cacheBustingProperties.includes(property))) { this.bustCache(); } },