Skip to content

Commit

Permalink
$mol_offline fix test.html caching
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Oct 28, 2024
1 parent 2dcd5aa commit 08aa70c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion offline/offline.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
2 changes: 1 addition & 1 deletion worker/service/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08aa70c

Please sign in to comment.