GithubHelp home page GithubHelp logo

spiderpig86 / axios-cache-interceptor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arthurfiorette/axios-cache-interceptor

2.0 2.0 0.0 5.63 MB

πŸ“¬ Small and efficient cache interceptor for axios. Etag, Cache-Contol, TTL, HTTP headers and more!

Home Page: https://axios-cache-interceptor.js.org

License: MIT License

Shell 0.86% JavaScript 4.99% TypeScript 94.14%

axios-cache-interceptor's Introduction

Help axios-cache-interceptor grow! Star and share this amazing repo with your friends and co-workers!


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


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.


axios-cache-interceptor's People

Contributors

arthurfiorette avatar catchabus avatar ckopanos avatar dependabot[bot] avatar fossabot avatar heiko-r avatar sarahsporck avatar spiderpig86 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.