antfu-collective / icones

⚡️ Icon Explorer with Instant searching, powered by Iconify

Home Page:https://icones.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use PWA cache storage to serve iconify collections

userquin opened this issue · comments

Clear and concise description of the problem

Right now, icones website adds all iconify collections from local, check postinstall script.

Client may end with all collections twice in the browser storage: in PWA cache storage and local storage.

Suggested solution

Add a custom SW to intercept fetch to iconify api calls, returning the local one.

With this solution we need to publish icones once iconify collections changes, maybe a few times per week/month.

Alternative

None

Additional context

No response

Validations