Solved

Forcing the expiration of HTML page

Posted on 1998-09-15
3
181 Views
Last Modified: 2010-04-09
I have a static pageA.htm and pageB.htm .  From pageA I link to pageB .  Suppose I am currently at pageB in the browser, then I modify pageB in NotePad, than in the web browser I link to pageA, and from there link to pageB.  PageB will not show the  modification I just made to it in NotePad.  If I click the Reload button in the browser however, pageB will update itself.  I guess this because of the cache in the memory of the browser.  How can I force an expiry from cache within the html code in pageB.htm ?
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
3 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1837780
put this in the <HEAD> of pageB
<meta http-equiv="Expires" content="January 1, 1970 00:00:00 GMT">
0
 

Author Comment

by:matala
ID: 1837781
Upon your answer, I put the following in pageB:
<HTML>
<head>
<meta http-equiv="Expires" content="January 1, 1970 00:00:00 GMT">
<title>pageB</title>
</head>

That did not do it.  Here is a piece of info that might be relevant to this problem:
PageA links to pageC.  PageC contains a frameset: frame1 display a static web page; frame2 displays pageB.htm (the one where I put your <meta> suggestion).  When that did not solve the problem, I also added the same <meta> in the <head> of pageC (the one that contains the frameset).  That did not do it either. Help!
0
 
LVL 28

Expert Comment

by:sybe
ID: 1837782
Hmmm, what browser do you use ? it should work..

Maybe it's necessary to write it in uppercase:

<META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">

For Internet Explorer should work:

<META HTTP-EQUIV="Pragma" CONTENT="No-cache">

0

Featured Post

Technology Partners: 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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

739 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