Solved

Forcing the browser not to load pages from its cache.

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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…

623 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