@PatrickLee22
Posted
Hello there 👋. Congrats on completing the challenge!
I've noticed a small glitch with application. When viewing your app on Firefox, the browser caches the response from the first API call. This would result in subsequent fetch calls to not retrieve a new advice slip.
To resolve this, you can set the cache option in your fetch call to 'no-cache' to prevent the browser from caching the response.
Alternatively, the Advice Slip API has an option to get a specific advice slip if you provide an id number at the end of the URL. You could append a random number to the URL and it which would bypass the caching on the server side.
Marked as helpful
@vishwa3
Posted
@PatrickLee22 : Pat - thanks for your valuable time to go through the solution and identify the hidden cool bug in there - I have corrected the same and its working as expected - but bugs like these time and again highlight why chrome is better than Firefox and others -I think default behavior should be to not cache but am not sure