diff --git a/src/server/utils/cdnCache.js b/src/server/utils/cdnCache.js index d8fa014d..26422667 100644 --- a/src/server/utils/cdnCache.js +++ b/src/server/utils/cdnCache.js @@ -97,7 +97,7 @@ const stripVersion = (url) => { }; export const removeExistingEntryIfConflicting = (url, cachedModuleFiles) => { - const updatedCachedModules = cachedModuleFiles; + const updatedCachedModules = { ...cachedModuleFiles }; const strippedUrl = stripVersion(url); const matchingModule = Object.keys(cachedModuleFiles)