cached-fetch

lib for ajax (new fetch api compliant) that automatically cache each query result


License
ISC
Install
npm install cached-fetch@1.0.1

Documentation

cFetch

Cached Fetch

mini lib to automatically perform an ajax fetch and store its result into a cache

usage :

<script src="../dist/index.js"></script>
<script>
    cfetch.fecth("data.json", { checkNetwork: false /* default value : true */ });

    /// node 
    /// var cfetch = require('cfetch')
    /// cfecth.fetch("http://...", { /* options */ })
</script>