Design comparison
SolutionDesign
Solution retrospective
This was a fun challenge!
I added cache: "no-cache"
in the fetch request for the API to overcome some cache issues with the Firefox browser. The first user request worked perfectly but subsequent requests did not generate new API data. Local Storage was empty and it was not a problem with the API server. This was not an issue in Chrome. The solution is to just ask the browser to not store the API data in the cache at all.
Let me know what you think!
Community feedback
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