Date and Time Not Updated During Second Visit to Web Site

ID: Q196329


The information in this article applies to:


SYMPTOMS

When you return to a Web page that displays date and time information after previously viewing the page, the date and time information may not be correct. Instead, the date and time information may be the same as the first time you viewed the Web page.


CAUSE

This problem can occur if the Web page contains the following Hypertext Markup Language (HTML) source code:


<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 


RESOLUTION

To work around this problem so the correct date and time information is displayed, use either of the following methods:

Method 1

Click Refresh in Internet Explorer. Note that clicking Back and then returning to the Web page does not update the data and time.

Method 2

Prevent the page from being stored in the cache (this forces the page to be reloaded). To do so, add a JScript OnUnload handler that does not do anything. For example, add the following OnUnload handler:


<BODY onUnload="nothing()"> 


where nothing is:


function nothing() {} 


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Internet Explorer for Macintosh has an additional cache that is entirely random access memory (RAM) based. This cache holds several of the previous pages (depending on their size) so that clicking Back or Next loads a page very quickly.

Additional query words: mac cache update


Keywords          : msiemac 
Version           : 
Platform          : 
Issue type        : kbprb 

Last Reviewed: January 13, 1999