Solved

Forcing the expiration of HTML page

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Send Mail Via SMTP Replacement/Rework 11 60
html coding on my Tumblr blog 1 34
Datepicker in PHP 9 38
How to hide the rows in Table when the value is empty ? 4 16
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.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

911 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

16 Experts available now in Live!

Get 1:1 Help Now