Skip to content

Commit

Permalink
Remove fetch caching
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorsharp committed Jun 17, 2024
1 parent 050424a commit dac83bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/app/[feedId]/feed/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { decompressModConfig } from "~/services/compressionService";
import { buildFeed, fetchFeedData } from "~/services/feedService";
import { applyMods } from "~/services/modService";

export const revalidate = 15 * 60;

const GET = async (request: Request, { params }: { params: { feedId: string } }) => {
try {
const { feedId } = params;
Expand Down
2 changes: 1 addition & 1 deletion src/services/feedService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const fetchFeedData = async (urls: string[], searchParams?: URLSearchParams) =>
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "OPTIONS,POST,GET",
},
next: { revalidate: 15 * 60 },
cache: "no-store",
})
.then((response) => response.text())
.then((data) => parseFeed(data))
Expand Down

0 comments on commit dac83bc

Please sign in to comment.