我试图在这里理解一些代码:
我试图了解它如何使缓存无效:
// Stop using the cache if there is a mutating call.
if (req.method !== 'GET' && req.method !== 'HEAD') {
this.isCacheActive = false;
this.invalidateCacheEntry(req.url);
}
当 req.method !== 'GET' 时,你如何得到一个情况?我只使用 GET 请求。