Did you set cache: false in your $.ajax params? -- Josh
-----Original Message----- From: Rick Faircloth [mailto:[email protected]] 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:326405 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

