Stephen Thanks. I'll suck it and see!
Kola >> -----Original Message----- >> From: Stephen Pope [mailto:[EMAIL PROTECTED] >> Sent: 26 November 2003 15:30 >> To: [EMAIL PROTECTED] >> Subject: RE: [ cf-dev ] Preventing browser page caching >> >> I had a similar problem .. I couldn't get a page to expire no matter what >> tags I tried .. after much trawling I found this code .. which fixed it >> for me .. hope this saves you some time and hair-pulling! :�) >> >> Regards >> >> Stephen Pope >> >> <HEAD> >> <script language="javascript"> <!-- >> // this code and associated form is to workaround >> // a bug in Internet Explorer that will show a cached version >> // when the back button is used. the reload is not >> // triggered by Netscape since it properly never gets >> // the page from the cache. >> 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> >> >> </HEAD> >> >> <BODY onLoad="onload_reloadme()"> >> >> >> -----Original Message----- >> From: Kola Oyedeji [mailto:[EMAIL PROTECTED] >> Sent: 26 November 2003 15:25 >> To: [EMAIL PROTECTED] >> Subject: [ cf-dev ] Preventing browser page caching >> >> >> >> Okay so I've always assumed that the following should always force the >> browser to refresh: >> >> <META HTTP-EQUIV="Expires" CONTENT="Mon, 01 Jan 1970 23:59:59 GMT"> >> <META HTTP-EQUIV="Content-Type" content="text/html; >> charset=WINDOWS-1250"> >> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> >> <META HTTP-EQUIV="cache-control" CONTENT="no-cache, no-store, >> must-revalidate"> >> >> After doing a few tests it appears that this code will not refresh a >> page returned to using the back button. >> >> Can anyone see anything wrong with the above? >> >> Thanks >> >> Kola >> >> >> -- >> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> For human help, e-mail: [EMAIL PROTECTED] >> >> >> -- >> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
