Skip to content

fix: pwa caches logo offline#30

Open
jpadgett314 wants to merge 1 commit into
linka-app:devfrom
jpadgett314:dev
Open

fix: pwa caches logo offline#30
jpadgett314 wants to merge 1 commit into
linka-app:devfrom
jpadgett314:dev

Conversation

@jpadgett314
Copy link
Copy Markdown

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.

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