Closed craig552uk closed 11 years ago
This is odd but I'm not sure it's a dataset issue so much as an IE issue. Ie may however be related to jquery's caching options as per http://stackoverflow.com/questions/1013637/unexpected-caching-of-ajax-results-in-ie8 Can you try adding
$.ajaxSetup({
cache: false
});
in your code before the dataset init and seeing if that helps?
Yes, I think it is a related problem. Though that fix didn't work, as dataset doesn't use jQuery.
As a work-around it's possible to append a random element to the request URL, which circumnavigates IE's aggressive caching.
var ds = new Miso.Dataset({
url: function(){ return 'data.csv?'+ Math.random(); },
delimiter: ','
});
I'll have a look at building a cache: false
option in to dataset if that sounds acceptable?
That's a good point, been a while since I've worked on this! Sounds like a plan to me, will look forward to a pull request!
Documented on the wiki under the "How Do I..." page.
Thanks, @iros.
Using basic code like that below, updates to the csv data file are not reflected in the browser on a page refresh when using IE8.
Steps to reproduce:
The problem is not resolved with either a forced refresh or by clearing the browser cache.
Tested with IE8 on WinXP/Win7 Miso Version: miso.ds.deps.ie.min.0.4.0.js