Skip to content

Commit afaffa6

Browse files
committed
Update jquery.unobtrusive-ajax.js
1 parent ff31f35 commit afaffa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.unobtrusive-ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
$.extend(options, {
9292
type: element.getAttribute("data-ajax-method") || undefined,
9393
url: element.getAttribute("data-ajax-url") || undefined,
94-
cache: !!element.getAttribute("data-ajax-cache"),
94+
cache: (element.getAttribute("data-ajax-cache") || "").toLowerCase() === "true",
9595
beforeSend: function (xhr) {
9696
var result;
9797
asyncOnBeforeSend(xhr, method);

0 commit comments

Comments
 (0)