Skip to content

Commit 680092c

Browse files
committed
fix(caching): fix cached featured dramas
1 parent b89304c commit 680092c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/dramacool.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ export async function getEpisodeInfo(episodeSlug: string) {
2929

3030
export async function getTrending(page = 1) {
3131
const url = `${env.API_URL}/top-airing?page=${page}`;
32-
const res = await fetch(url);
32+
const res = await fetch(url, { cache: "no-cache" });
3333
if (!res.ok) return null;
3434
const data: TopAiring = await res.json();
3535
return data;
3636
}
3737

3838
export async function getFeatured() {
3939
const url = `${env.API_URL}/featured`;
40-
const res = await fetch(url);
40+
const res = await fetch(url, { cache: "no-cache" });
4141
if (!res.ok) return null;
4242
const data: Featured[] = await res.json();
4343
return data;

0 commit comments

Comments
 (0)