Example #1
0
 fetch(req: Request, instructions: FetchInstruction[]): void {
   instructions.unshift(fetchFromCacheInstruction(this.worker, req, this.cacheKey));
 }
Example #2
0
 fetch(req: Request): FetchInstruction {
   return fetchFromCacheInstruction(this.worker, req, this.cacheKey);
 }