Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Forcing the browser not to load pages from its cache.

Posted on 1998-09-15
2
Medium Priority
?
142 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 100 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

670 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