I have a GET route handler that makes a fetch request to an external API like this:
fetch(url, {
headers: { Authorization: `Bearer ${accessToken}` },
next: {
revalidate: ONE_WEEK_IN_SECONDS,
},
});
Since accessToken changes every hour I'm assuming I'll get a cache miss for the same URL after an hour? If so how can I get cached results in this case?