November 3, 1999 - Preventing a Document from Being Cached | WebReference

November 3, 1999 - Preventing a Document from Being Cached

Yehuda Shiran November 3, 1999
Preventing a Document from Being Cached
Tips: November 1999

Yehuda Shiran, Ph.D.
Doc JavaScript

You can prevent a document from being cached by adding the following META tag to the document:

<META HTTP-EQUIV="Expires" CONTENT="0">

Preventing the document from being cached ensures that a fresh copy of the document will always be retrieved from the site, even during the user's current session, regardless of how the user has set the browser's caching options. This is useful if the content of the document changes frequently.

You should be aware that this technique is often annoying, because the user needs to wait for the entire page to load each time.