Design comparison
Solution retrospective
Hi! My solution works fine on Google Chrome, but in Firefox I keep getting the same advice all the time. What can be the cause of it?
Community feedback
- @EmanueleGuriniPosted about 2 years ago
Some browsers caching the data from a specific server, and in this case Firefox detects that you are sending the request to same end-point, and he try to give you back the data in a faster way sending back the data that your already got before.
As you know, when you work with HTTP methods you can set many info inside your request (https://developer.mozilla.org/en-US/docs/Web/API/Request/cache), so in that case you need to tell to your browser that you don't want to cache the data: fetch(url, { cache: "reload" })
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin our Discord community
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