antfu-collective / icones

⚡️ Icon Explorer with Instant searching, powered by Iconify
https://icones.js.org
MIT License
5.13k stars 250 forks source link

use PWA cache storage to serve iconify collections #135

Closed userquin closed 1 year ago

userquin commented 1 year ago

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