Solved

Forcing the expiration of HTML page

Posted on 1998-09-15
3
169 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 Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
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 add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

856 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