Flushing cache

2012-11-07 Thread Rob Voyle

Hi Folks

Is there anyway to ensure that a user starts with a new or fresh template 
that 
is loaded from the website and not from their computer's cache.

I have a form that I update on my website, but people will often complete it 
from 
a version that is in their cache.

Rob



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353072
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Flushing cache

2012-11-07 Thread Claude Schnéegans

 Is there anyway to ensure that a user starts with a new or fresh template 
 that
is loaded from the website and not from their computer's cache.

It is supposed to be handled automatically by CF with appropriate HTTP headers.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353073
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Flushing cache

2012-11-07 Thread Russ Michaels

The simple answer.

Add the following HTML in between the HEAD and /HEAD tags of your page:

meta http-equiv=Expires content=-1

the more complex answer is that not all browsers will take notice of this.
You may need to add additional headers using the CFHEADER tag.

cfheader name=Cache-Control value=no-cache
cfheader name=Cache-Control value=private
cfheader name=Cache-Control value=no-store
cfheader name=Cache-Control value=must-revalidate
cfheader name=Cache-Control value=max-stale=0)
cfheader name=Cache-Control value=post-check=0
cfheader name=Cache-Control value=pre-check=0
cfheader name=Pragma value=no-cache
cfheader name=Keep-Alive, timeout=3, max=993
cfheader name=Expires, Mon, 26 Jul 1997 05:00:00 GMT



On Wed, Nov 7, 2012 at 4:51 PM, Rob Voyle robvo...@voyle.com wrote:


 Hi Folks

 Is there anyway to ensure that a user starts with a new or fresh
 template that
 is loaded from the website and not from their computer's cache.

 I have a form that I update on my website, but people will often complete
 it from
 a version that is in their cache.

 Rob



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353074
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Flushing cache

2012-11-07 Thread Pradeep Viswanathan Rajasekaran

Use a session variable/cookie and set the expiry and validate the same on
form submission.
On Nov 7, 2012 8:52 PM, Rob Voyle robvo...@voyle.com wrote:


 Hi Folks

 Is there anyway to ensure that a user starts with a new or fresh
 template that
 is loaded from the website and not from their computer's cache.

 I have a form that I update on my website, but people will often complete
 it from
 a version that is in their cache.

 Rob



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353078
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm