Advice Generator using CSS flex-box

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!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @sophiakoulen
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 helpful
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