We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Wait what? Why do you need to cache API ? With service worker & cache mechanisms, even opaque response can be cached (no kidding!).
You can add caching to api by following method:
api.fetch("api call link", { swcache: 20 });
The swcache will cache the api request with the service worker for mentioned period of seconds.
swcache
An example of the same has been mentioned here.