mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 11:52:45 +08:00
REGRESSION: not caching async scripts, remove cache buster
This commit is contained in:
parent
6262ff457d
commit
20ab1f97e4
|
@ -43,7 +43,7 @@ export default function loadScript(url, opts) {
|
|||
if (opts.scriptTag) {
|
||||
loadWithTag(cdnUrl, cb);
|
||||
} else {
|
||||
$.getScript(cdnUrl).then(cb);
|
||||
Discourse.ajax({url: cdnUrl, dataType: "script", cache: true}).then(cb);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user