Link to home
Start Free TrialLog in
Avatar of TARDEC
TARDEC

asked on

Firefox is unwantedly caching form data on page refresh

I am creating a page with a form on it for user input.  When the form is submitted, the page refreshes with new information on it based upon the user's submitted data.  Unfortunately, firefox somehow caches the user inputted data and it overrides the new data that should be displayed.  A ctrl+f5 refresh takes care of the problem, but this workaround is not acceptable to my customer.  

How can I clear out the cached values on page reload to avoid this problem?
Avatar of araim
araim
Flag of Poland image

how do you refresh the page ?
try to add some random parameter (like timestamp in miliseconds) to your url

instead of submit.jsp  give it submit.jsp?xx=123424532 where xx is just a bogus parameter with some random value
Avatar of TARDEC
TARDEC

ASKER

When the form is submitted, it pops up a page that is the processing page.  This page then has an onload function set to onLoad="window.opener.location.reload();window.close();"
ASKER CERTIFIED SOLUTION
Avatar of araim
araim
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin