2022-01-07 13:58:48 -03:00
2022-01-07 13:58:48 -03:00
2022-01-05 18:19:48 -03:00
2021-10-12 09:24:26 -03:00
2021-12-26 20:22:48 -03:00
2021-12-27 18:31:14 -03:00
2021-09-20 08:36:11 -03:00
2021-12-30 16:03:28 -03:00


Issues Stars License Codecov Blazing Fast
Downloads Minified Size Install Size Try on RunKit


  

📬 Axios Cache Interceptor


axios-cache-interceptor is a small and efficient cache interceptor for axios.


import Axios from 'axios';
import { setupCache } from 'axios-cache-interceptor';

// same object, but with updated typings.
const axios = setupCache(Axios);

const req1 = axios.get('https://api.example.com/');
const req2 = axios.get('https://api.example.com/');

const [res1, res2] = await Promise.all([req1, req2]);

res1.cached; // false
res2.cached; // true

Documentation at axios-cache-interceptor.js.org 🎉🎉


License

Licensed under the MIT. See LICENSE for more informations.


Contact

See my contact information on my github profile or open a new issue.


Description
📬 Small and efficient cache interceptor for axios. Etag, Cache-Contol, TTL, HTTP headers and more!
Readme MIT 67 MiB
Languages
TypeScript 97.2%
JavaScript 1.5%
Shell 1.3%