0

IE7 caching dynamic XML (for use with SPRY)

Web Development
I have only used Spry a few times so this might be a common issue. I have recently started doing the cross-browser testing for this latest code, I noticed that IE7 is caching the XML I am generating for my Spry datasources. I even tried using the whole cfheader no-cache routine...




What I ended up doing to prevent this from happening was to append the tickCount to the XML call as such:


var MySpryDS = new Spry.Data.XMLDataSet(""/index.cfm/event/Data.xml/#getTickCount()#"", ""loanapps/loanapp"");

Is there any better trick to prevent IE from being so "IE" about this?

Andrew Powell said:
 
Aaron -

I have something similar from a while back for you:

http://www.infoaccelerator.net/index.cfm/2006/11/1...
 
posted 1342 days ago
Add Comment Reply to: this comment OR this thread
 
 
Sweet, guess it's not that new.
 
posted 1342 days ago
Add Comment Reply to: this comment OR this thread
 
Darrin said:
 
I have a coldfusion template generating the XML, I call it with a variable who'se value is a random string.

my_dynamic_xml.cfm?rnd=[some random string]

It's basically what you are doing, old school cachebusting.
 
posted 1295 days ago
Add Comment Reply to: this comment OR this thread
 
Day Waterbury said:
 
Yeah. The "old school cachebusting" works great. Particularly with AJAX stuff because if it doesn't refresh the script doesn't run and that's a real pain. Anyway, thanks for the inspiration. Would be good to know if the folks at MS consider this bug a 'feature' or what? Is the a more 'legitimate' way to tell IE to *actually* run the damn script. Ah well, my thing works now...thanks again.
 
posted 1027 days ago
Add Comment Reply to: this comment OR this thread
 

Search