We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b89304c commit 680092cCopy full SHA for 680092c
src/lib/dramacool.ts
@@ -29,15 +29,15 @@ export async function getEpisodeInfo(episodeSlug: string) {
29
30
export async function getTrending(page = 1) {
31
const url = `${env.API_URL}/top-airing?page=${page}`;
32
- const res = await fetch(url);
+ const res = await fetch(url, { cache: "no-cache" });
33
if (!res.ok) return null;
34
const data: TopAiring = await res.json();
35
return data;
36
}
37
38
export async function getFeatured() {
39
const url = `${env.API_URL}/featured`;
40
41
42
const data: Featured[] = await res.json();
43
0 commit comments