Solved

Forcing the browser not to load pages from its cache.

Posted on 1998-09-15
2
136 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
[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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

752 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