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);