Currently, my application is running in Express and I have a button that sends a POST request to the server. After receiving a 200 OK response, the HTML page is displayed. The issue I am facing is that even though I can see the HTML payload in Firebug, my browser page is not refreshing or updating.
I am using the following code:
app.get('/', function(req, res){
res.sendfile('./temp1.html');
});
app.post('/next', function(req, res){
res.sendfile('./temp3.html');
});
I am wondering why the data received in the 200 OK response is not reflecting on the browser and it still displays temp1.html. Is there something specific that needs to be done to refresh the URL or update the page?