Hi,
When I click 'Back' and return to the previous form I do not see the fresh (recalculated) value on the form. Instead, I see the old value.
I think this is an issue of cache-control headers.
I noticed that if, before clicking 'Back', I change the form (I change the script by adding a dummy hidden element), then the expected value is shown after 'Back' was clicked.
Probably the change in the form forced the form to be reloaded from the server.
I tried the following headers but they do not see to influence.
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header("Expires: Mon, 26 Jul 1990 05:00:00 GMT"); // Date in the past
session_cache_limiter("must-revalidate");
I noticd that 'httpd -l' does not list mod_expires or mod_headers. Would this be the reason why the headers do not seem to work? Must I recompile apache to include these modules?
Thanks.