The success() function in the DataSource should check the response status. If the status is 304 "Not Modified", that indicates that the data has not changed and so the DataSource should not modify its internal data structures nor fire the "change" event.
Hi Andrew,
The DataSource uses jQuery AJAX under the hood for handling async requests and with 304 headers in the request, all callbacks and promises are resolved as successfully finished requests. Therefore, without having the separation within the jQuery.ajax method to somehow separate 2xx and 3xx responses there os no reliable way to handle that as a built-in option in the DataSource.
Regards,
Ianko
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.