loading: add 'noCache' option for <replay-web-page> embeds, ensure option is passed to wabac.js loader
dependencies: update to wabac.js 2.12.3 to fully support noCache for WARCs bump to 1.6.4
This commit is contained in:
@@ -35,6 +35,7 @@ class Embed extends LitElement
|
||||
this.reloadCount = 0;
|
||||
this.noSandbox = false;
|
||||
this.noWebWorker = false;
|
||||
this.noCache = false;
|
||||
this.logo = rwpLogo;
|
||||
}
|
||||
|
||||
@@ -70,6 +71,7 @@ class Embed extends LitElement
|
||||
deepLink: { type: Boolean },
|
||||
noSandbox: { type: Boolean },
|
||||
noWebWorker: { type: Boolean },
|
||||
noCache: { type: Boolean },
|
||||
|
||||
errorMessage: { type: String }
|
||||
};
|
||||
@@ -178,6 +180,10 @@ class Embed extends LitElement
|
||||
params.noWebWorker = "1";
|
||||
}
|
||||
|
||||
if (this.noCache) {
|
||||
params.noCache = "1";
|
||||
}
|
||||
|
||||
this.paramString = new URLSearchParams(params).toString();
|
||||
|
||||
this.hashString = new URLSearchParams({
|
||||
|
||||
Reference in New Issue
Block a user