Ric, >I am building a little app in CF and using AJAX. (not CFAJAX) > >Basically it has 2 types of functions. >The first returns a CF created table to display the data list. >The second returns a CF created list, that I break up in javascript to >populate my form. > >I am having an issue that all the data being returned is cached (in the >browser, not server side). >Any ideas on how I can stop it? Is appending a uuid to the query string my >only option? >I am using the no-cache meta tag param but im sure that is just for the >front end html. > >How do I also stop the javascript from being cached? >Without turning off caching in the browser. >This part wont be an issue for production, but its annoying in development.
Lots of solutions to this problem, but this method is one of the simplest to implement: http://www.ferdychristant.com/blog/archive/DOMM-6R8HL2 And don't forget that Google is your friend with these types of requests. A simple search for "prevent ajax caching" brings back lots of solutions. Also, if you don't want to go the JS route of adding a date stamp to the url, you can pass back response headers to prevent caching: http://www.greenash.net.au/posts/thoughts/an-ie-ajax-gotcha-page-caching (Take a look at the comments for the CF equivalent code.) -Dan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293993 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

