I have a problem that when we datasource.read() it gets cached data and not up-to-date data from the server.
Of course it seems that it only does it in internet explorer... firefox works fine.
We send a query string with a random number to keep the request from getting cached data.
If you profile it it firefox:
1rst request: ?nocache=
2nd request: ?nocache=
3rd request: ?nocache=
If you profile it in IE:
1rst request: ?nocache=0.6602959470869887
2nd request: ?nocache=0.6602959470869887
3rd request: ?nocache=0.6602959470869887
How can I keep the datasource.read() from reusing the same value (url) it had when first called or initiated??
Or is there any "no cache" like option?
Of course it seems that it only does it in internet explorer... firefox works fine.
We send a query string with a random number to keep the request from getting cached data.
GridData = new kendo.data.DataSource({ transport: { read: { url: buildAsyncUrl('GetData'), dataType: "json", data: JSON.stringify(GridFilters) } }, ......});function buildAsyncUrl(cont) { return cont + '/?nocache=' + Math.random();}//whenever we need to refresh the grid we call:GridData.read();
If you profile it it firefox:
1rst request: ?nocache=
0.360128123197711152nd request: ?nocache=
0.54653671974024073rd request: ?nocache=
0.5722005265817256If you profile it in IE:
1rst request: ?nocache=0.6602959470869887
2nd request: ?nocache=0.6602959470869887
3rd request: ?nocache=0.6602959470869887
How can I keep the datasource.read() from reusing the same value (url) it had when first called or initiated??
Or is there any "no cache" like option?