Design comparison
Solution retrospective
I found getting firefox to ignore the cache when sending https GET requests to an API difficult. StackOverflow had a helpful suggestion where you append the url with a timestamp query string. Can we do better than this?
Community feedback
- @remyboirePosted over 2 years ago
Hi @veeru-neerukonda, nice job completing this challenge!
I don't know how axios works, but personnaly I used a basic fetch request with
cache: no-cache
as follow :let quote = await fetch('https://api.adviceslip.com/advice', { cache: 'no-cache' })
and it did the job!Hopes this helps,
Rémy
Marked as helpful1@sriveer-mePosted over 2 years agoHi @remyboire thank you for taking the time and yes your method did help me out.
thank you,
veeru
0
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