fetch
will use cached responses by default. You're probably disabling caches when testing locally. You can change the behaviour with the cache
option:
const response = await fetch(apiUrl, { cache: "no-store" });
1
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord