cache:{maxAge:15*60*1000}})// Use global instance configapi.get('/get').then((response)=>{// Do something awesome with response})// Override `maxAge` and cache URLs with query parametersapi.get('/get?with=query',{cache:{maxAge:2*60*1000,// 2 min instead of 15 minexclude:{que...
To launch a single run tests using ChromeHeadless: npmtest To launch tests in watch mode in Chrome for easier debugging with devtools: npm run watch Browser vs Node.js axios-cache-adapterwas designed to run in the browser. It does work in nodejs using thein memory store. But storing data...
npm install --save axios-cache-adapter Or bower bower install --save axios-cache-adapter Or from a CDN like unpkg.com Usage Instantiate adapter on its own You can instantiate theaxios-cache-adapteron its own using thesetupCache()method and then attach the adapter manually to an instance of...
I'm using axios-cache-adapter for client-side caching, and I'm updating our instance to use a localForage store instead of relying on in-memory storage. https://www.npmjs.com/package/axios-cache-adapter#use-localforage-as-cache-store has some code examples on creating the localForage store...