Przeglądaj źródła

Don't cache in jquery ajax

version-14
Nabin Hait 9 lat temu
rodzic
commit
7047bd29ad
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      frappe/public/js/frappe/request.js

+ 2
- 1
frappe/public/js/frappe/request.js Wyświetl plik

@@ -125,7 +125,8 @@ frappe.request.call = function(opts) {
type: opts.type, type: opts.type,
dataType: opts.dataType || 'json', dataType: opts.dataType || 'json',
async: opts.async, async: opts.async,
headers: { "X-Frappe-CSRF-Token": frappe.csrf_token }
headers: { "X-Frappe-CSRF-Token": frappe.csrf_token },
cache: false
}; };


frappe.last_request = ajax_args.data; frappe.last_request = ajax_args.data;


Ładowanie…
Anuluj
Zapisz