diff --git a/utils/pathUtils.js b/utils/pathUtils.js index e8cd172..372c321 100644 --- a/utils/pathUtils.js +++ b/utils/pathUtils.js @@ -45,7 +45,9 @@ function getHostCachePathComponent(url) { const { host } = new URL(url); - return host.replace(/[^a-z0-9]/gi, '').toLowerCase(); + + return host.replace(/\.:/gi, '_').replace(/[^a-z0-9_]/gi, '_').toLowerCase() + + '_' + SHA1(host); } /**