Hi Ty, Thanks for this, but no joy as yet.
Any idea what I might be doing wrong please? Jenny -----Original Message----- From: Ty Strange [mailto:[EMAIL PROTECTED] Sent: 18 April 2007 00:48 To: CF-Talk Subject: Re: Force a page refresh >I've tried a few ways to force a page to refresh, no joy so far. > >have tried cfheader, adding a time stamp to the url and a meta no-cache. > >Page 1: form with file field >page 2: processes file upload, thumbnailing etc, and returns user to page 1 > >the problem being that the old image shows unless the user hits refresh in >the browser. > >Any ideas please? > >Jenny Jenny, Wrap this code block inside a custom tag and call it from the top of your page: <!--- Don't allow this page to be cached ---> <CFSET gmts = gettimezoneinfo()> <CFSET gmt = gmts.utcHourOffset> <CFIF gmt> <CFSET gmt = "+" & gmt > <CFELSE> <CFSET gmt = ""> </CFIF> <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"> Cheers, Ty ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275658 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4