At 11:54 AM 6/3/2001 -0400, you wrote:
>Dear all..,
>
>How i could enforce the File or page to be get from server not
>from the cach ..,if one could help me plz..........it does not
>matter if the solution in javascript or coldfusion.

To answer that, we need to know why it is coming from the cache in the 
first place, since coming from the server is the default activity.

If it is cached in the browser or on a proxy server, you can force it to 
reload with some HTML meta tags. This example from the cf-talk archives 
seems pretty thorough (code courtesy of Steven Semrau):
<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>


If it is cached on the server, you could put the tags for the caching 
mechanism in a <cfif > statement and set up a way to change the values for 
when you want to go to the server.


Now available in a San Francisco Bay Area near you!
http://63.74.114.11/mr_urc/index.cfm
http://63.74.114.11/mr_urc/resume.cfm


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

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to