I am executing the following code in an iFrame:
window.frames[0].location.reload();
It reloads the page, however, it looks like SOMETIMES the data is cached. I found the source of the URL that it is reloading. What I would like to do is append a random number to the URL so that when it reloads it is unique and will prevent caching.
How would I do that with the above code?
UPDATE:
I have modified the code where I'm attempting to set the href to a new URL string that I built. However, it looks like when I print out the location.href after setting it (the line above), I'm still getting the old location.href.
window.frames[0].location.href = newIfURL;
console.log(window.frames[0].location.href);
window.frames[0].location.href();
Am I doing this right?