Domino Code Fragment

Code Name*
Prevent pages from caching
Date*
09/28/1998
Source (or email address if you prefer)*
Jamie Magee
IP address:.
Description*
Causes browser to always reload a page from the server
Type*
Formula, HTML
Categories*
Website Tools
Implementation:
None (plug and play)
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:

Place in a computed for display field called $$HTMLHead (or in the R5 HTML Head Content property)

"<META HTTP-EQUIV=\"expires\" CONTENT=\"0\">"

On IE this won't work.  For IE use the following in the same location as above...
"<META HTTP-EQUIV=\"pragma\" content=\"NO-CACHE\">"

which gives unreliable cache prevention.

For more reliable cache prevention on IE, put this...
<META HTTP-EQUIV="PRAGMA" content="NO-CACHE">
between

<\BODY>
<BODY>
<META HTTP-EQUIV="PRAGMA" content="NO-CACHE">
</BODY>
<\HTML>

at the bottom of your document.