* Delete the corresponding url object in cache * @param url the corresponding url object to be deleted
(url: string)
| 405 | * @param url the corresponding url object to be deleted |
| 406 | */ |
| 407 | async deleteInCache(url: string) { |
| 408 | if (this.cache === undefined) { |
| 409 | this.cache = await caches.open(this.scope); |
| 410 | } |
| 411 | await this.cache.delete(url); |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | /** |