apply cache-busting to more ckeditor assets

pull/1/head
ansuz 4 years ago
parent 7c1e43e22c
commit 2644e72ad5

@ -8,9 +8,6 @@ require(['/api/config'], function(ApiConfig) {
} }
if (resource[resource.length - 1] !== '/' && resource.indexOf('ver=') === -1) { if (resource[resource.length - 1] !== '/' && resource.indexOf('ver=') === -1) {
var args = ApiConfig.requireConf.urlArgs; var args = ApiConfig.requireConf.urlArgs;
if (resource.indexOf('/bower_components/') !== -1) {
args = 'ver=' + window.CKEDITOR.timestamp;
}
resource += (resource.indexOf('?') >= 0 ? '&' : '?') + args; resource += (resource.indexOf('?') >= 0 ? '&' : '?') + args;
} }
return resource; return resource;

Loading…
Cancel
Save