Cache on Updates

2011-01-20 Thread Richard White

Hi,

Every time we need to do an update to the client script on our software, we are 
noticing the changes are not being picked up by our users until they clear 
their cache.

We are wondering what is the best way of handling this?

thanks 

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


Re: Cache on Updates

2011-01-20 Thread Wil Genovese

Your talking about javascripts right? caching of these is normal and good, but 
updates are also needed. A good way to do this is to version the filename. ie. 
siteScript1.0.0.js then siteScript1.0.1.js etc... This forces the browsers to 
load the new script into cache the first time it encounters it.



Wil Genovese
Sr. Web Application Developer/
Systems Administrator

Wil Genovese Consulting
wilg...@trunkful.com
www.trunkful.com

On Jan 20, 2011, at 10:56 AM, Richard White wrote:

 
 Hi,
 
 Every time we need to do an update to the client script on our software, we 
 are noticing the changes are not being picked up by our users until they 
 clear their cache.
 
 We are wondering what is the best way of handling this?
 
 thanks 
 
 

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


Re: Cache on Updates

2011-01-20 Thread Mike Chabot

When I make a change to a .js file or a .css file and I want to be sure that
users have the latest version, I change the name of the file, such as
script1.js, script2.js, etc. I think this is the best way.
Maybe you could put a dummy URL variable on the path as an alternative.

-Mike Chabot

On Thu, Jan 20, 2011 at 11:56 AM, Richard White rich...@j7is.co.uk wrote:


 Hi,

 Every time we need to do an update to the client script on our software, we
 are noticing the changes are not being picked up by our users until they
 clear their cache.

 We are wondering what is the best way of handling this?

 thanks

 

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


Re: Cache on Updates

2011-01-20 Thread Richard White

excellent idea, thanks



 Hi,
 
 Every time we need to do an update to the client script on our 
 software, we are noticing the changes are not being picked up by our 
 users until they clear their cache.
 
 We are wondering what is the best way of handling this?
 
 thanks 


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