Hi all,
Could someone advise me on the definitive way to stop a page being cached by
browsers (ie + opera). What I'm doing has random effects
and does not effectively do the job.
e.g.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Tracking Application</title>
<script language="JavaScript">
<!--
function onload_reloadme () {
if (document.reloadme_form.reloadme_field.value == "reloadme" ) {
self.location.reload(true)
} else {
document.reloadme_form.reloadme_field.value = "reloadme";
}
// set the focus to the first non-hidden field on the second
// form - the first form is always the reloadme_form below.
if (document.forms[1]) {
for (i=0; i<document.forms[1].elements.length; i++) {
if (document.forms[1].elements[i].type.toLowerCase() != "hidden") {
document.forms[1].elements[i].focus();
break;
}
}
}
}
</script>
<form name="reloadme_form"><input type=hidden name="reloadme_field"
value="dontreloadme"></form>
<META HTTP-EQUIV="Expires" CONTENT="#dateformat(now(), 'dddd / mmmm /
yyyy')#"></cfoutput>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="cache-control" CONTENT="no-cache, no-store,
must-revalidate">
The Javascript option works fine on some Clients but others with the same
Browser forget about it.
Scripting is fully enabled, so I can't source the problem yet.
The back up Meta tag option is not very reliable at all I find.
If anyone has any ideas I would be glad to here from you.
John.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists