I have the following jquery code:
Client side javascript Code:
$.ajax({
url: "/MyController/GetOrders",
cache: false, dataType: "json"
}).done(function (data) {
FilloutTable(data.Orders);
});
asp.net-mvc Controller Code:
[CompressFilter]
[AcceptVerbs(HttpVerbs.Get)]
public JsonResult GetOrders()
{
var orders = Model.GetOrders();
return Json(new{Orders= orders}, JsonRequestBehavior.AllowGet);
}
I have a few cases with a few users where they are not seeing the latest data. When i have them clear out their browser cache and do a hard refresh, it then works fine.
I thought the
cache: false,
would protect me against any browser caching on this request. Any suggestion for what could be still being cached here and any suggestion for a solution to make sure people don't get old data?