diff --git a/packages/warp-cache/src/internal/cacheHttpClient.ts b/packages/warp-cache/src/internal/cacheHttpClient.ts index a283e0bdd7..9877cca9e4 100644 --- a/packages/warp-cache/src/internal/cacheHttpClient.ts +++ b/packages/warp-cache/src/internal/cacheHttpClient.ts @@ -113,7 +113,8 @@ export function getCacheVersion( enableCrossOsArchive = false, enableCrossArchArchive = false ): string { - const components = paths + // be careful not to mutate the path while creating a hash + const components = paths.slice() // Add compression method to cache version to restore // compressed cache as per compression method