I am pulling my hair here. I think I am falling into som really basic stuff but here is my error. I have built a simple webpage with the following "tree-view".
in my readjson.js I read from my json-file stored in json/label.json. However!
Even if I have updated my json-file it reads the FIRST version of the json-file when I started. Using Google Chrome and have tried to refresh the browser, clean my build an so on. Still wont update the json-file on localhost.
Have anyone else run into this and how do I solve it?
Have you tried to bring up the developer console (ctr shift j) and right click on the refresh icon using the "Empty Cache and Hard Reload" option?
Ctrl + Shift + Del -> Clear all cached data
Then Ctrl + F5 should be enough.
On Mac you right click the reload button and click "Empty Cache and Hard Reload". Sometimes, though, it's enough to just do a "Hard Reload" (cmd + shift + R).
Right click on console and clear console history and right click on refresh button on your browser and hard reload.
The problem is that Chrome is reading the data from cache files. You should:
- Clear cookies and cache files.
- Reload the page.
It worked for me.
来源:https://stackoverflow.com/questions/25723801/file-not-updating-on-localhost