next.js caching cannot be disabled … I’ve used:
export const dynamic = ‘force-dynamic’ … no luck
revalidate: 0 … no luck
cache: ‘no-store’ … no luck
all combined … no luck
and then this header on top of it:
headers: {
"Content-Type": "application/json",
"Cache-Control":
"no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0",
Pragma: "no-cache",
Expires: "0",
},
… no luck …
… is there a way to add refetch to the component? no matter what … when i click the link to a page the second time, it just loads from cache despite all of the above?
0