Angular HttpInterceptor如何被调用?

时间:2019-03-18 00:42:52

标签: angular angular-universal angular-http-interceptors angular-transfer-state

我试图在这里理解一些代码:

transfer_http.ts

我试图了解它如何使缓存无效:

// 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请求。

0 个答案:

没有答案