Per default le chiamate ajax fatte con jQuery è fanno cache del risultato.

Se si vuole evitare questo comportamento bisogna aggiungere il parametro
JavaScript
cache: false
come nell'esempio seguente:
JavaScript
$.ajax({
  type: "GET",
  url: "/TimeSheet/_vti_bin/tstservice.svc/GetTimeSheet",
  processData: false,
  cache: false,
  contentType: "application/json; charset=utf-8",
  dataType: "json",
  success: function (data, textStatus, jqXHR) {
    ... code ...
  },
  error: function (jqXHR, textStatus, errorThrown) {
    alert("error: " + textStatus + " - " + errorThrown);
  }
}
Potrebbe interessarti anche: