The easiest way is to simply expire the page using cfheader.  Take a look at 
http://www.bennadel.com/blog/1619-caching-coldfusion-pages-with-expires-header-value.htm.

David Phelan
Web Developer
IT Security & Web Technologies

Emerging Health
Montefiore Information Technology
3 Odell Plaza, Yonkers, NY 10701
914-457-6465 Office
dphe...@emerginghealthit.com
www.emerginghealthit.com
www.montefiore.org

________________________________________
From: =?ISO-8859-1?Q?Claude_Schn=E9egans <schneegans@interneti=71?= 
=?ISO-8859-1?Q?ue.com=3E?=>
Sent: Friday, September 12, 2014 11:05 AM
To: cf-talk
Subject: How can I force clients to refresh JavaScript files?

I wonder why browsers caching Javascript and CSS files at least do not check if 
the date of the file on the server is still the same as the one in their cache.
Since I implemented a Javascript errors log, I catch many errors showing that 
the old file in the cache was used days after the error was corrected, even 
with Google Bot! (yeah, Google Bot reads and executes scripts).

This page :
http://stackoverflow.com/questions/32414/how-can-i-force-clients-to-refresh-javascript-files
expose the problem and gives many solutions.

I wonder if one could develop an even better solution using ColdFusion?
Any ideas?




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:359295
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to