arthurfiorette / axios-cache-interceptor

📬 Small and efficient cache interceptor for axios. Etag, Cache-Control, TTL, HTTP headers and more!

Home Page:https://axios-cache-interceptor.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoid `RangeError: Maximum call stack size exceeded` on streams and other objects

arthurfiorette opened this issue · comments

Currently, the ID is generated even when you use cache: false. The ID should only be created when cache is not false.

const id = (config.id = axios.generateKey(config));

This line should be below the config.cache === false.

commented

Hey, is it just the ID, or is there another known issue?

As far as I tested yes, but I'm not 100% sure.