diff --git a/offline/offline.web.ts b/offline/offline.web.ts index 0dcb6b4793..35d55b873a 100644 --- a/offline/offline.web.ts +++ b/offline/offline.web.ts @@ -32,7 +32,7 @@ namespace $ { async respond(request: Request) { let fallback_header - const force_cache = /.+\/[^\/]+\.html/.test(request.url) + const force_cache = /.+\/index\.html/.test(request.url) const no_cache = request.cache === 'no-cache' && ! force_cache const ignore_cache = this.value('ignore_cache') diff --git a/worker/service/plugin.ts b/worker/service/plugin.ts index 162bd58cbc..735e58d88b 100644 --- a/worker/service/plugin.ts +++ b/worker/service/plugin.ts @@ -3,7 +3,7 @@ namespace $ { export class $mol_worker_service_plugin extends $mol_object { static attach_to< This extends typeof $mol_worker_service_plugin >( this : This, - worker = $mol_worker_service, + worker: { attach(plugin: $mol_worker_service_plugin): void }, config?: Partial< InstanceType< This > >, ) { const plugin = new this