I've been using the following code to force a refresh and it seems to work
well:

<CFSCRIPT>
        GMT = GetTimeZoneInfo();
        GMT = GMT.UTCHourOffset;
        if (GMT IS 0) GMT = '';
        else if (GMT GT 0) GMT = '+' & GMT;
</CFSCRIPT>

<CFHEADER NAME="Pragma" VALUE="no-cache">
<CFHEADER NAME="Cache-Control" VALUE="no-cache, must-revalidate">
<CFHEADER NAME="Last-Modified" VALUE="#DateFormat(Now(),'ddd, dd mmm yyyy')#
#TimeFormat(Now(),'HH:mm:ss')# GMT#GMT#">
<CFHEADER NAME="Expires" VALUE="Mon, 26 Jul 1997 05:00:00 GMT">

I don't remember where I found this but I seem to recall that IE and NS
handle these headers differently and this code addressed it somehow...

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com



> -----Original Message-----
> From: Troy Montour [mailto:vamp@;vampiresinc.com]
> Sent: Wednesday, November 13, 2002 4:38 PM
> To: CF-Talk
> Subject: Re: Need to reset the page if someone clicks back
> 
> 
> Fregas,
>     well yes on refreshing.. reason I need to is I have a 
> select statement
> on the page and I need it to go back to default when the page 
> loads if they
> click the back button.
> 
> and I tried the no-cache in the meta tag and that didn't work.
> 
> Thanks
> Troy
> 
> ----- Original Message -----
> From: "Fregas" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 13, 2002 3:21 PM
> Subject: Re: Need to reset the page if someone clicks back
> 
> 
> > You are saying that if someone clicks "Back" you want the 
> page to Refresh?
> > (not reset)
> >
> > You should be able to put in an HTML meta tag that will 
> tell the page not
> to
> > cache.  But that's all I can think of off hand.
> >
> > Craig
> >
> > ----- Original Message -----
> > From: "Troy Montour" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Wednesday, November 13, 2002 3:13 PM
> > Subject: Need to reset the page if someone clicks back
> >
> >
> > > Hello everyone,
> > >     Quick question...
> > >
> > > I need to make sure the page resets if someone clicks back.
> > > is there away to do it with CF or do I need to use something else?
> > >
> > > Thanks in advance
> > > Troy E. Montour
> > > Vampires Inc
> > > 4663 Main ST NE
> > > Fridley, MN 55421 United States
> > > H: (763) 571-3872 | M: (612) 867-6831 | F: (763) 586 0552
> > > [EMAIL PROTECTED] | www.vampiresinc.com
> > >
> > 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to