Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
fix(devCDN): prevent mutatation of cache
Browse files Browse the repository at this point in the history
  • Loading branch information
code-forger committed Dec 7, 2023
1 parent 9d0afc3 commit 8a673e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/utils/cdnCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a673e6

Please sign in to comment.