antfu-collective / icones

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

fix: handle cached collections urls properly #140

Closed userquin closed 1 year ago

userquin commented 1 year ago

This PR includes some sw optimizations:

I'll try to move all local collections outside precache on its own cache using runtime config, current version will take long time to install and activate the sw, it needs to download ~400MB, then it is activated: visit any collection without sw installed and activated will use iconify request api.

This PR will be on draft a few minutes, checking on my local runtime caching changes.

userquin commented 1 year ago

I will clear logs later...

userquin commented 1 year ago

some screenshots:

imagen

imagen

userquin commented 1 year ago

Runtime caching approach not working, getting errors when accessing the cache, there is no way to update cache entry. Precaching collections working properly, tested also on safari and chrome on macOS (cyberalien).