Hi,
I use a json to load data
var datastore = new dhx.DataCollection({
datatype:"json"
});
dhx.delay(function(){
datastore.load("data/films.js");
});
The iPhone displays it right. But if I change data in json, and reload the page, it displays the old data, no the new one. I’ve got the same issue in Firefox, on desktop. Then I clear chache, and the new data appear.
Is this normal? Can I force new data to load?
Ruben
Maybe, when I bind this DataCollection, I’ve to refresh it?
$$("featuredFilms").sync(datastore,this);
$$("featuredFilms").bind(datastore);
Thanks,
Ruben
This is browser level cache, it can be solved by adjusting server side headers, or just simple changing the loading command as
dhx.delay(function(){
datastore.load("data/films.js?uid="+dhx.uid());
});
it will make url unique for each page loading, which will prevent data caching.
Hi Stanislav,
I’ve tried and it works great! Thank you!
I’ll use this way to load data, in other DataCollections, too.
Ruben