This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
Add caching files with service worker #4
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
need/community-input
Needs input from the wider community
We will have improvements in the time for getting files if we cache them using the service worker. In this context, the service worker would start by verifying if the file is already stored in the cache. If it is stored there, it can be returned immediately. Otherwise, it should use the running IPFS node, in order to get the file.
It is also important pointing out that, as we intend to support all types of files (consequently, different sizes), some of them may not be the best candidates for being cached. This way, it is necessary to decide a good criterion for caching a file.
Reference: https://developers.google.com/web/ilt/pwa/caching-files-with-service-worker
The text was updated successfully, but these errors were encountered: