Solved

Forcing the expiration of HTML page

Posted on 1998-09-15
3
187 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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

724 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