I have a CGI application written in C. When I POST (delete data) to the cgi app from the html form, the action is correctly executed on the server but the page does not refresh after the POST. It does flicker, but displays the non-updated page. I then have to hit the browsers refresh to see the correct updated html page (showing data has been removed).
Is this the web server? Javascript? or just a browser setting? (I am using GoAhead web server, cgi app in C, javascript, html and Fire Fox.)
Any help is appreciated.
It’s your browser cache that is playing tricks on you.
Check the HTTP headers you get when
GETting (orPOSTing) the page to see if there are anything about cache, if there is it’s your webserver that is causing the cache otherwise it’s the browser. Try with a different browser, or make the webserver send the page with a negative expiration date.