I am trying to reload the page after a POST request is complete with this line:
window.location.reload();
On my local machine this is updating the content on the page, meanwhile on my remote server where I use Nginx I have to force refresh the page.
I tried:
window.location = window.location
window.location.href = window.location.href
window.location.reload(true);
//reloading with a setTimeout function
//turning off the cache in nginx