Skip to content

Commit

Permalink
fix: rm hardcoded game var to match existing bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
dromzeh committed Sep 1, 2024
1 parent f76039e commit 6653fd1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/routes/games/list-games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const getGames = async (
): Promise<Response> => {
const cacheUrl = new URL(request.url);

// Change this line
const cacheKey = cacheUrl.toString();
const cache = caches.default;

Expand All @@ -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",
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6653fd1

Please sign in to comment.