diff --git a/packages/service-worker/worker/src/assets.ts b/packages/service-worker/worker/src/assets.ts index f3beb8a421..b6650ff0e6 100644 --- a/packages/service-worker/worker/src/assets.ts +++ b/packages/service-worker/worker/src/assets.ts @@ -454,7 +454,6 @@ export abstract class AssetGroup { protected async maybeUpdate(updateFrom: UpdateSource, req: Request, cache: Cache): Promise { const url = this.adapter.normalizeUrl(req.url); - const meta = await this.metadata; // Check if this resource is hashed and already exists in the cache of a prior version. if (this.hashes.has(url)) { const hash = this.hashes.get(url)!; @@ -467,7 +466,6 @@ export abstract class AssetGroup { if (res !== null) { // Copy to this cache. await cache.put(req, res); - await meta.write(req.url, {ts: this.adapter.time, used: false} as UrlMetadata); // No need to do anything further with this resource, it's now cached properly. return true;