(
url: string,
storetype?: string,
signal?: AbortSignal,
)
| 613 | } |
| 614 | |
| 615 | async fetchWithCache( |
| 616 | url: string, |
| 617 | storetype?: string, |
| 618 | signal?: AbortSignal, |
| 619 | ): Promise<any> { |
| 620 | // TODO: Avoid duplicate OPFS record validation by trying cache reads first |
| 621 | await this.addToCache(url, storetype, signal); |
| 622 | return this.readFromCache(url, storetype); |
| 623 | } |
| 624 | |
| 625 | private async readFromCache(url: string, storetype?: string): Promise<any> { |
| 626 | if (storetype?.toLowerCase() === "arraybuffer") { |
nothing calls this directly
no test coverage detected