},
getURL(url) {
- if (!this.loadbalancing) {
+ if (!this.loadbalancing || this.checkExcludedFromLoadBalancing(url)) {
return url;
}
return 'https://' + this._loadbalancingServerURL[url] + '/' + this.fluidbook.settings.id + '_' + this.fluidbook.settings.hash + '/' + url;
},
+ checkExcludedFromLoadBalancing: function (url) {
+ for (let i in this.fluidbook.settings.hosting_loadbalancer_ignore) {
+ let r = this.fluidbook.settings.hosting_loadbalancer_ignore[i];
+ if (url.indexOf(r) !== -1) {
+ return true;
+ }
+ }
+ return false;
+ },
+
getTexture: function (page, callback, enter) {
if (enter === undefined) {
enter = true;