linka icon indicating copy to clipboard operation
linka copied to clipboard

fix: pwa caches logo offline

Open jpadgett314 opened this issue 7 months ago • 0 comments

Before this change, the linka PWA was unable to load the logo offline because the service worker did not cache it.

After this change, the logo is cached and available offline. May need to clear browser cache to take effect.

Explanation of changes

  • Removed LinkaLogo import: the import causes the PNG to be duplicated and a hash applied, which can't be specified in the PWA manifest.
  • Specify logo assets: the production build already included the logos, but the service worker did not cache them. This way, the logos are added to the service worker's list of cached files.

jpadgett314 avatar Apr 27 '26 07:04 jpadgett314