I found this somewhere and put it in my cfapplication and it seems to
work. The cfapplication would be the way to go I would think.

<CFSET gmt = gettimezoneinfo()>
<CFSET gmt = gmt.utcHourOffset>
<CFIF gmt EQ 0>
   <CFSET gmt = "">
<CFELSEIF gmt GT 0>
   <CFSET gmt = "+" & 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">




JLB


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2003 4:54 PM
To: CF-Talk
Subject: <cfheader> and caching


I'm trying to keep my pages from caching in visitors browsers and/or
proxy
servers. I found the following code online that uses cfheader:

<CFHEADER NAME="Expires" VALUE="Mon, 06 Jan 1990 00:00:01 GMT">
<CFHEADER NAME="Pragma" VALUE="no-cache">
<CFHEADER NAME="cache-control" VALUE="no-cache"> 

Do I have to put that code in the <head></head> section of my pages, or
can
it just go at the top? Can I put it in my Application.cfm file? Should I
bother with META tags too? Has anyone had any experiences with this that
could be helpful? 

Thanks,
Jonathan
________________________________________________________
Jonathan Mauney
Manager, Digital Media Properties / Web Application Developer
1110 WBT AM / 107.9 the LINK (WLNK-FM) / Jefferson-Pilot Radio Network
Jefferson-Pilot Communications Co.
One Julian Price Place
Charlotte, North Carolina 28208



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to