lisaogren / axios-cache-adapter

Caching adapter for axios. Store request results in a configurable store to prevent unneeded network requests.
MIT License
726 stars 107 forks source link

Cache-miss #167

Open betopompolo opened 4 years ago

betopompolo commented 4 years ago

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? 🤔