1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00
This commit is contained in:
nobody
2020-03-20 08:14:31 +01:00
parent 02ce651295
commit 422557ca55
6 changed files with 33 additions and 8 deletions

View File

@@ -105,9 +105,8 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
targetPath = resourceMappings[resourceMold].path;
targetPath = targetPath.replace(Resource.VERSION_PLACEHOLDER, versionNumber);
// Replace
version = helpers.setLastVersion(targetPath);
// Replace the requested version with the latest depending on major version
version = helpers.setLastVersion(targetPath, versionNumber);
targetPath = targetPath.replace(versionNumber, version);
hostShorthands = shorthands[channelHost];