Advice generator app

Solution retrospective
Hello everyone!
First of all, mainly I use Firefox for web development instead of Chrome and for this particular challenge, I did encounter a weird problem regarding API fetching on Firefox.
Somehow on Firefox, I keep getting the same response on every request from the API. After hours of pulling hairs, I decided to test it on Chrome and somehow it does gives me different responses on every request.
On the API doc, it is stated that Advice is cached for 2 seconds. Any repeat-request within 2 seconds will return the same piece of advice. But I did tried sending request using both browser every 5 seconds and I still got the same problem on Firefox.
Anyone here have any idea why this happens?
Thank you in advance!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Zubair Adham's solution.
Join 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