Cache authentication configuration in IndividualLocalAuth && Hosted case
This commit is contained in:
parent
90d7d0b368
commit
d9ed5166ff
|
|
@ -19,6 +19,12 @@ async function onInstall(event) {
|
|||
.filter(asset => offlineAssetsInclude.some(pattern => pattern.test(asset.url)))
|
||||
.filter(asset => !offlineAssetsExclude.some(pattern => pattern.test(asset.url)))
|
||||
.map(asset => new Request(asset.url, { integrity: asset.hash }));
|
||||
//#if(IndividualLocalAuth && Hosted)
|
||||
|
||||
// Also cache authentication configuration
|
||||
assetsRequests.push(new Request('_configuration/ComponentsWebAssembly-CSharp.Client'));
|
||||
|
||||
//#endif
|
||||
await caches.open(cacheName).then(cache => cache.addAll(assetsRequests));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue