axios-cache-adapter

JSON →
library 2.7.3 ·javascript maintenance
verified Jun 7, 2026

Caching adapter for axios that stores GET request results in a configurable store to prevent unnecessary network requests. Current stable version is 2.7.3, with releases following a maintenance cadence. The library provides two main APIs: setupCache() for creating a standalone cache adapter, and setup() for creating a pre-configured axios instance. It supports per-request cache configuration and uses localForage as the default store. Unlike other axios caching solutions, it relies on localForage for cross-browser IndexedDB/WebSQL/LocalStorage support. Requires peer dependency axios ~0.21.1.