arthurfiorette/axios-cache-interceptor
arthurfiorette/axios-cache-interceptor has 820 GitHub stars and 67 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 04:12 UTC. Last push 2026-11-03.
📬 Small and efficient cache interceptor for axios. Etag, Cache-Control, TTL, HTTP headers and more!
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
Using this package? Please consider donating to support my open source work ❤️
Help axios-cache-interceptor grow! Star and share this amazing repository with your friends and co-workers!
Axios Cache Interceptor
Cache interceptor for Axios, made with developers and performance in mind.
- ⚡ Faster!
- 📦 Handy builds!
- 🔩 Hassle-free!
- 🛠️ Rich Features!
- 🌐 No network waste!
- 🔑 TypeScript!
Axios Cache Interceptor is, as its name says, an interceptor for axios to handle caching. It was created to help developers call axios multiple times without having to worry about overloading the network or implementing a simple and error-prone cache system.
import Axios from 'axios';
import { setupCache } from 'axios-cache-interceptor';
const instance = Axios.create();
const axios = setupCache(instance);
const req1 = axios.get('https://arthur.place/');
const req2 = axios.get('https://arthur.place/');
const [res1, res2] = await Promise.all([req1, req2]);
res1.cached; // false
res2.cached; // true
License
Licensed under the MIT License. See LICENSE for more information.
Star History
All Thanks to Our Contributors
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,827 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,467 starsreact/react
The library for web and native user interfaces.
252,466 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,625 stars