@sophiakoulen
Posted
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 just https://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
@K4UNG
Posted
@sophiakoulen I didn't know I could add that. Thanks, I'll fix it right away.