Skip to content

fix(cache): recover offline wallpapers, cache favicons, purge orphane…#408

Open
pooooooriya wants to merge 1 commit into
widgetify-app:mainfrom
pooooooriya:fix/sw-cache-offline-wallpaper-and-favicons
Open

fix(cache): recover offline wallpapers, cache favicons, purge orphane…#408
pooooooriya wants to merge 1 commit into
widgetify-app:mainfrom
pooooooriya:fix/sw-cache-offline-wallpaper-and-favicons

Conversation

@pooooooriya

Copy link
Copy Markdown
Contributor

…d caches

  • Wallpapers (image/gif/video) no longer stay black after an update or while offline. The image is probed out-of-band and re-applied once the service worker has pinned/cached it, videos retry on error, and everything re-applies when the tab comes back online instead of waiting for a manual re-select.
  • Bookmark favicons (Google's favicon service) are now cached, so they load offline and hit the network far less. Bounded via ExpirationPlugin and versioned like the other caches.
  • Three legacy cache names (images-cache-v1, cross-origin-cache-v1, widgetify-api-cache-v1) from pre-overhaul Workbox versions were missing from the purge list and lingered forever on updated installs; they are now removed by purgeStaleCaches().

…d caches

- Wallpapers (image/gif/video) no longer stay black after an update or while
  offline. The image is probed out-of-band and re-applied once the service
  worker has pinned/cached it, videos retry on error, and everything re-applies
  when the tab comes back online instead of waiting for a manual re-select.
- Bookmark favicons (Google's favicon service) are now cached, so they load
  offline and hit the network far less. Bounded via ExpirationPlugin and
  versioned like the other caches.
- Three legacy cache names (images-cache-v1, cross-origin-cache-v1,
  widgetify-api-cache-v1) from pre-overhaul Workbox versions were missing from
  the purge list and lingered forever on updated installs; they are now removed
  by purgeStaleCaches().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant