Solved

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

Posted on 1999-01-05
6
155 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
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Accepted Solution

by:
jbrugman earned 200 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now