Local browser cache for the Fetch API
npm install fesch -S
import { Fesch } from 'fesch';
const { fetch } = Fesch({
expiry: 3_600_000, // 1 hour
});
// Uses the standard Fetch API
await fetch('https://jsonplaceholder.typicode.com/todos/1' {
headers: {
accept: 'application/json',
}
});
This work is licensed under The MIT License