Forums Register Login
Expiring a page on clicking the browser BACK button
for a page i.e. if the customer clicks on “Submit” button on a.jsp then clicks on the browsers “BACK” button then we should expiry the page, irrespective if the request was successfully processed or an error page was thrown.

We have added the following code in the a.jsp that seems to work on IE but does not work on Firefox.

response.addHeader("Cache-Control", "no-store");
//response.addHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "-1");
Can you please suggest what could be wrong in this?
"Prashant", please check your private messages for an important administrative matter.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 779 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jun 23, 2018 06:02:18.