From 3b88562a392d09ad919018fd028f24ffdf0b1983 Mon Sep 17 00:00:00 2001 From: Jai A Date: Mon, 6 Nov 2023 16:27:39 -0700 Subject: [PATCH] fix versions with slashes --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4714978..03f7f26 100644 --- a/src/index.ts +++ b/src/index.ts @@ -86,7 +86,7 @@ export default { const cacheResponse = await cache.match(request); const url = new URL(request.url); - const key = decodeURI(url.pathname.slice(1)); + const key = decodeURIComponent(url.pathname.slice(1)); const urlData = extractUrlData(key);