Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Advice generator app

animation
Zubair Adham•400
@atmahana
A solution to the Advice generator app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License