?
Solved

Cache a web page even if the browser setting is new page every visit to the page

Posted on 1999-01-05
6
Medium Priority
?
202 Views
Last Modified: 2010-04-09
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 !
0
Comment
Question by:adbkp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 4

Expert Comment

by:martinag
ID: 1841298
In Netscape, the information will be there no matter if the cache is on or off. In IE3, the information will be away (not sure about IE4/5).

Martin
0
 
LVL 6

Expert Comment

by:PBall
ID: 1841299
It sticks too in IE4.  So what's this question good for then hehe.
0
 

Author Comment

by:adbkp
ID: 1841300
Adjusted points to 200
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 4

Accepted Solution

by:
jbrugman earned 400 total points
ID: 1841301
you can use the following(a lot of work though :-)
mind the difference between 'and " !
It's not real caching, but you'll get the idea.

<HTML>

<SCRIPT LANGUAGE="JavaScript">
function cachedpage() {
document.write("<HTML>");
document.write("<BODY BACKROUND='back.jpg'>");
document.write("<FONT FACE='ARIAL'>the cached page</FONT>");
document.write("</BODY></HTML>");
</SCRIPT>

<BODY>
<FORM>
<INPUT TYPE="BUTTON" onClick"="cachedpage()"
</FORM>
</BODY>
</HTML>
0
 
LVL 4

Expert Comment

by:martinag
ID: 1841302
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
0
 
LVL 4

Expert Comment

by:jbrugman
ID: 1841303
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).
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question