Skip to content

Commit

Permalink
fix: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvanc committed Nov 29, 2024
1 parent 8fe4336 commit 3bdcf90
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/utils/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ const CURRENT_DATE_ISO = new Date().toISOString();

export async function getGamesToday() {
const response = await fetch(
"https://cdn.nba.com/static/json/liveData/scoreboard/todaysScoreboard_00.json",
{
headers: {
"Cache-Control": "public, max-age=60",
},
}
"https://cdn.nba.com/static/json/liveData/scoreboard/todaysScoreboard_00.json"
);
const json = await response.json();
const {
Expand Down Expand Up @@ -71,7 +66,7 @@ export async function getGamesToday() {

return data(gamesData, {
headers: {
"Cache-Control": "public, max-age=120",
"Cache-Control": "public, s-max-age=120",
},
});
}
Expand Down

0 comments on commit 3bdcf90

Please sign in to comment.