I've been doing the random quote machine project for freecodecamp and I can't seem to stop the response from the api being cached.
I've tried various answers:
- fetch(), how do you make a non-cached request?
- https://forum.freecodecamp.org/t/apis-and-the-random-quote-machine-not-even-sure-what-to-ask/65982/13
I thought I had it at one point:
fetch(this.url, {cache: 'no-cache'})
.then(res => res.json())
... but I was just disabling the cache in developer tools.
Please help. :-D.
Here is where i've been trying to make it work: https://codepen.io/JonathanDWood/pen/gRNNKx