lisaogren / axios-cache-adapter

Caching adapter for axios. Store request results in a configurable store to prevent unneeded network requests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache-miss

betopompolo opened this issue · comments

Hi there! I'm trying to use this lib in a Nodejs server. Here is my config:

    this.httpClient = setup({
      cache: {
        maxAge: 1000 * 60,
        exclude: {
          query: false,
        },
        debug: true,
      },
    });

With this configuration, I'm getting result?.request?.fromCache undefined. Also, I'm getting [axios-cache-adapter] cache-miss <myUrl>. The request is GET and my axios version is 0.18.1 btw. Have tried with axios@0.19.2 but got the same results.
What I'm doing wrong here? 🤔