Design comparison
SolutionDesign
Solution retrospective
Here is my solution!! It is working fine on Chrome but not generating new advice on Firefox! I'm trying to solve this. Feedback is appreciated!
Community feedback
- @elaineleungPosted about 2 years ago
Hi Obaida, about the advice not being generated in Firefox, it's due to the browser's cache settings, so what you can do is, add a header object in your fetch method after the URL, like this:
fetch('https://api.adviceslip.com/advice', { cache: 'no-cache' } )
See whether that works, and if not, we'll try something else!
(By the way, the "advcie" number title should be spelled as "advice"!)
Marked as helpful2
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