>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


Wrap this code block into a custom tag and call it from the top of the 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
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275656
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to