Here is some code that we use at the top of the pages we don't want to have
cached (refreshed every time).... hope it helps.


<meta http-equiv="Expires" content="0">
<!--- setup our expire times for NN and MSIE --->
<cfoutput>
        <!--- MSIE (Fri, 30 Oct 1998 14:19:41 GMT) --->
        <cfset
MSIEtimestamp='#dateformat(now(),"DDD")#,#dateformat(now(),"DD")#
#dateformat(now(),"Mmm")# #timeformat(now(),"HH:MM:SS")#'>
        <!--- Netscape (Wednesday, Apr 26 2000 17:45:25 PM) --->
        <cfset
NETSCAPEtimestamp='#dateformat(now(),"DDDD")#,#dateformat(now(),"MMM")#
#dateformat(now(),"dd")# #dateformat(now(),"YYY")#
#timeformat(now(),"HH:MM:SS tt")#'>
</cfoutput>
<!--- tell HTTP Header to force expire of pate - nocache --->
<cfif HTTP_USER_AGENT contains "MSIE">
        <cfheader name="Expires"
value="<cfoutput>#MSIEtimestamp#</cfoutput>">
        <cfheader name="Pragma" value="no-cache">
        <cfheader name="cache-control" value="no-cache, no-store,
must-revalidate">
<cfelse>
        <cfheader name="Expires"
value="<cfoutput>#NETSCAPEtimestamp#</cfoutput>">
        <cfheader name="Pragma" value="no-cache">
        <cfheader name="cache-control" value="no-cache, no-store,
must-revalidate">
</cfif>

Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com:  (703) 805-1095
DSN:  (703) 655-1095


-----Original Message-----
From: Haryono ... [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 9:29 PM
To: CF-Talk
Subject: refresh page


Hallo,
I want to ask something.
I use cflocation to move to page "editlecture.cfm".
<cflocation url="editlecture.cfm" addtoken="No">

But at page editlecture.cfm, the content of
editlecture.cfm not refresh.
( I use page "editlecture.cfm" to display list of
lecture)

Can you help me?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to