Design comparison
SolutionDesign
Solution retrospective
I chose this challenge to refresh my knowledge about Angular http request. When I thought that I finished, I realised that the browser is cacheing the requests and after clicking on the button, the values are not changing. So i made a different approach.Instead of getting a random quote from the server, I'm making a random index number on the client side and making a request with the random number. With this approach, the request url is always changing and the browser will not cache the value.
Community feedback
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