Good to know, Josh! Thanks! -----Original Message----- From: Josh Nathanson [mailto:p...@oakcitygraphics.com] Sent: Thursday, September 17, 2009 5:03 PM To: cf-talk Subject: RE: How to prevent IE from caching content added via ajax?
Oh...if you are using the load function, then you can just do this somewhere before it: $.ajaxSetup({ cache: false }); This will make it so any and all subsequent ajax requests (including load) are not cached. -- Josh -----Original Message----- From: Josh Nathanson [mailto:p...@oakcitygraphics.com] Sent: Thursday, September 17, 2009 1:49 PM To: cf-talk Subject: RE: How to prevent IE from caching content added via ajax? Did you set cache: false in your $.ajax params? -- Josh -----Original Message----- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Thursday, September 17, 2009 1:42 PM To: cf-talk Subject: How to prevent IE from caching content added via ajax? Poor title, but I couldn't get it all in there. - got a page which loads a .cfm of content into a div via a jQuery .load function - the content for the .loaded .cfm page is generated in a cfc method, and I use cfsavecontent and save the generated content out to the aforementioned .cfm file - when the page I'm loading in the browser loads the content via .load from the .cfm page, IE doesn't refresh the .loaded content.FF does - If I close IE and open the page again, the content is refreshed.even refreshing the page using F5 doesn't help - I've tried the mega tags <meta http-equiv='cache-control' content='no-cache'> and <meta http-equiv-'expires' content='-1'> as well as the header <cfheader name='expires' value='#getHttpTimeString(dateAdd('s', 1, now()))#'> - None of those headers or meta tags are working - what else could I try? Thanks for any suggestions! Rick ---------------------------------------------------------------------------- --------------------------------------- "Those who hammer their guns into plows will plow for those who do not." - Thomas Jefferson ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326412 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4