2022-02-01 13:33:53 -03:00
2022-02-04 07:59:01 -03:00
2022-02-04 07:53:48 -03:00
2022-01-23 18:12:14 -03:00
2022-01-18 12:06:20 -03:00
2022-01-23 16:13:22 -03:00
2022-02-01 13:58:34 -03:00
2022-02-04 07:59:01 -03:00
2022-01-08 13:31:02 -03:00
2022-01-23 16:52:26 -03:00
2022-01-23 19:07:32 -03:00
2022-01-27 20:39:26 -03:00
2022-01-07 17:33:23 -03:00
2022-02-01 14:01:06 -03:00

Issues Stars License Try on Runkit Codecov Downloads Bundlephobia Packagephobia FOSSA Status Join the chat at https://gitter.im/axios-cache-interceptor/community


  

⚡ 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.

FOSSA Status


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%