Solved

Forcing the browser not to load pages from its cache.

Posted on 1998-09-15
2
134 Views
Last Modified: 2010-04-09
I have a static pageA.htm, pageC.htm and pageB.htm .  From pageA I link to pageC .  PageC contains a frameset: frame1 displays some static web page; frame2 displays pageB.htm
Suppose I am currently at looking at pageC in the browser, then I modify pageB in NotePad, than in the web browser I link back to pageA, and from there link to pageC.  PageB will not show the  modification I just made to it in NotePad.  If I click the Reload button in the browser however, pageC will update itself showing the modifications made to pageB inside frame2.  I guess this is because of the cache in the memory of the browser.
To solve the problem, I put:
<meta http-equiv="Expires" content="January 1, 1970 00:00:00 GMT"> in the <head> of pageC and pageB.  However, this did not solve the problem of loading pageB with its lastest content unless I refresh using the Reload button. Help!
0
Comment
Question by:matala
2 Comments
 

Author Comment

by:matala
ID: 1837799
I actually got it to work just now; thanks in advance for anyone who attempted to help.
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 50 total points
ID: 1837800
Try to put this in pagec:

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript"><!-- //cloak
function loadFrame() {
   now = new Date();
   top.FRAMEB.location = 'http://myserver.com/pageB.html? '+ now.getTime; /* add the time to the pagename - forces new load each time */
}
// uncloak --></SCRIPT>
</HEAD>
<FRAMESET COLS="50%,*" onLoad="top.loadFrame()">
<FRAME NAME="FRAMEA" SRC="static.html">
<FRAME NAME="FRAMEB" SRC="javascript:' '">
</FRAMESET>
</HTML>

Michel
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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 …

825 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