0

So I'm working with webgl to display a simple image + animation. I store all my data in a json file, and I fetch the json file's data using this line in my javascript code: let data = await fetch('illini.json').then(r=>r.json())

However, when I print to my browser's console, it shows the old .JSON data, not the updated values.

I'm testing everything on localhost.

2
  • Have you tried to clear browser cache?
    – Stefino76
    Mar 14 at 22:56
  • Yup! Tried that. Still didn't work :( Mar 14 at 23:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy