diff --git a/tools/cordova/builder.js b/tools/cordova/builder.js index b825318386..765da00f50 100644 --- a/tools/cordova/builder.js +++ b/tools/cordova/builder.js @@ -500,7 +500,17 @@ export class CordovaBuilder { program.versionNonRefreshable = AUTOUPDATE_VERSION || WebAppHashing.calculateClientHash( - program.manifest, type => type !== "css", configDummy); + program.manifest, + (type, replaceable) => type !== "css" && !replaceable, + configDummy + ); + + program.versionReplaceable = AUTOUPDATE_VERSION || + WebAppHashing.calculateClientHash( + program.manifest, + (_type, replaceable) => replaceable, + configDummy + ); } generateBootstrapPage(applicationPath, program, publicSettings) {