Solved

Forcing the expiration of HTML page

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now