{"library":"axios-cache-plugin","type":"library","category":null,"description":"A lightweight plugin that adds client-side caching for GET requests made with Axios. It wraps an Axios instance or the default Axios, caching responses in memory based on URL and optional headers. Version 0.1.0 (latest as of March 2025) is a stable release with minimal updates. Key features: configurable max cache size (default 15), TTL support, and exclusion of headers from cache keys. Unlike more comprehensive caching libraries (e.g., axios-extensions), this plugin uses explicit filter registration via regex patterns, giving precise control over which requests are cached. It is simple and focused, suitable for small to medium projects.","language":"javascript","status":"maintenance","version":"0.1.0","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install axios-cache-plugin","imports":["import wrapper from 'axios-cache-plugin'","const wrapper = require('axios-cache-plugin').default","import wrapper from 'axios-cache-plugin';\nconst http = wrapper(axios);\nhttp.__addFilter(/pattern/)","http.__clearCache()"]},{"cmd":"yarn add axios-cache-plugin","imports":[]},{"cmd":"pnpm add axios-cache-plugin","imports":[]}],"homepage":"https://github.com/jin5354/axios-cache-plugin#readme","github":"https://github.com/jin5354/axios-cache-plugin","docs":null,"changelog":null,"pypi":null,"npm":"axios-cache-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}