sEcho and OutputCache on MVC
sEcho and OutputCache on MVC
I'm implementing a little application on MVC 4, using DataTables Plugin.
Everything goes right until I try to specify what request to cache.
If I tell the application to cache by IDisplayStart,IDisplayLength and sSearch, it works but when trying to revisit a table page,
it stops working, as the sEcho provided and the sEcho returned by the server are not the same.
If I added sEcho to the parameters, it would basically mean caching one object per page browsed.
Is there any way to ignore the sEcho parameter and render the table anyways.
Thanks a lot,
Gabriel.
Everything goes right until I try to specify what request to cache.
If I tell the application to cache by IDisplayStart,IDisplayLength and sSearch, it works but when trying to revisit a table page,
it stops working, as the sEcho provided and the sEcho returned by the server are not the same.
If I added sEcho to the parameters, it would basically mean caching one object per page browsed.
Is there any way to ignore the sEcho parameter and render the table anyways.
Thanks a lot,
Gabriel.
This discussion has been closed.
Replies
Relevant part of the DataTables code: https://github.com/DataTables/DataTables/blob/master/media/js/jquery.dataTables.js#L2097
Allan