I have a function that reads a file, but even once you change the data it returns the same output in chrome. the only way I have found to correct this is to clear cache and site data. is there any way where if the file is changed it would change the output without clearing site data in between each run?
function readTextFile(file)
{
fetch(file)
.then(response => response.text())
.then(text => console.log(text))
}