ipfs / service-worker-gateway

[WIP EXPERIMENT] IPFS Gateway implemented in Service Worker
https://inbrowser.link
Other
17 stars 8 forks source link

feat: cache sw-gateway assets #222

Closed SgtPooki closed 1 month ago

SgtPooki commented 2 months ago

Instead of ignoring ipfs-sw-* assets, we could let the fetch request go through, and cache it, so unstable servers (inbrowser) are less burdened with requests for all the assets.

However, this could add more issues with caching.. but all assets have content-id-hashes, so a sw caching all the assets for it's deployment should be fine. open to thoughts