From 6653fd166b7066521df2739f984478f3e4db93c5 Mon Sep 17 00:00:00 2001 From: Marcel <65048232+dromzeh@users.noreply.github.com> Date: Sun, 1 Sep 2024 21:47:37 +0100 Subject: [PATCH] fix: rm hardcoded game var to match existing bucket --- src/routes/games/list-games.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/routes/games/list-games.ts b/src/routes/games/list-games.ts index 3505cea..55dfbe3 100644 --- a/src/routes/games/list-games.ts +++ b/src/routes/games/list-games.ts @@ -9,7 +9,6 @@ export const getGames = async ( ): Promise => { const cacheUrl = new URL(request.url); - // Change this line const cacheKey = cacheUrl.toString(); const cache = caches.default; @@ -21,7 +20,7 @@ export const getGames = async ( const files = [ "genshin-impact", - "zenless-zone-zero", + // "zenless-zone-zero", "honkai-star-rail", "honkai-impact-3rd", "dislyte", @@ -71,7 +70,6 @@ export const getGames = async ( ); response.headers.append("Cache-Control", `max-age=${60 * 60 * 1}`); - // Change this line ctx.waitUntil(cache.put(cacheKey, response.clone())); return response;