adbkp
asked on
Cache a web page even if the browser setting is new page every visit to the page
Is there a way with meta tags or cache-control or any other way to force the browser to use a browsercached copy of a page instead of loading a fresh one if the browser setting is set for a new page every visit to the page ? If a user fills in a form and get an error response i would like it if the user could press the back button and get the form with the data that the user already has filled in - not an empty form. Thanks in advance !
It sticks too in IE4. So what's this question good for then hehe.
ASKER
Adjusted points to 200
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I don't get the idea.
BTW, that script won't work with...err...most browsers (maybe none (don't know that much about IE)). You'll have to open() and close() the document:
document.open();
document.write(...);
document.close();
Martin
BTW, that script won't work with...err...most browsers (maybe none (don't know that much about IE)). You'll have to open() and close() the document:
document.open();
document.write(...);
document.close();
Martin
You are able to read the form, pass the data to hidden fields, then put them in a pre-written page, like document.write("name <INPUT TYPE=tekst VALUE="+namefield+">") when hitting back, the data is still in the form. (it's no real caching).
Martin