Design comparison
Solution retrospective
This is my first time working with APIs and it was really fun. I learned a lot about async, await and a brilliant use of box shadow for glow effect. Any kind of feedback or suggestion would be highly appreciated. Happy Coding!
Community feedback
- @sophiakoulenPosted over 2 years ago
The button doesn't work (at least in my browser) because of caching.
A solution to get around that is to ask for
"https://api.adviceslip.com/advice?_"+new Date().getTime()
instead of justhttps://api.adviceslip.com/advice
.When you just ask for
https://api.adviceslip.com/advice
, the browser thinks it is the same resource you're asking everytime and doesn't refresh it.But adding a query string that changes everytime solves the issue very easily.
Marked as helpful0@K4UNGPosted over 2 years ago@sophiakoulen I didn't know I could add that. Thanks, I'll fix it right away.
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