-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(pwa): add precache filters [LIBS-482] #793
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tomzemp
approved these changes
Mar 13, 2023
HendrikThePendric
approved these changes
Mar 13, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, and great that you've added docs for this options too.
dhis2-bot
added a commit
that referenced
this pull request
Mar 13, 2023
🎉 This PR is included in version 10.3.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
dhis2-bot
added a commit
that referenced
this pull request
Aug 10, 2023
# [10.4.0-alpha.3](v10.4.0-alpha.2...v10.4.0-alpha.3) (2023-08-10) ### Bug Fixes * move precache route to reenable navigation handler on login redirects [LIBS-473] ([#809](#809)) ([1ff29b6](1ff29b6)) * **pwa:** avoid crashing when SW is not available [LIBS-499] ([#807](#807)) ([b681022](b681022)) * omit `moment-locales` from precache ([#806](#806)) ([c8d5494](c8d5494)) * **cli:** fix envs to fix plugins in dev ([#799](#799)) ([ba29cea](ba29cea)) * **plugins:** omit launch paths when unused [LIBS-477] ([#791](#791)) ([e49a51f](e49a51f)) * **pwa:** bump ui version for headerbar connection status [LIBS-315] ([#797](#797)) ([61ff0a4](61ff0a4)) * make loading placeholders transparent ([#795](#795)) ([6e64756](6e64756)) * **plugins:** inject precache manifest correctly ([#792](#792)) ([c0d172e](c0d172e)) * **pwa:** add config option to omit files from precache [LIBS-482] ([#793](#793)) ([d089dda](d089dda))
🎉 This PR is included in version 10.4.0-alpha.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses LIBS-482
Doesn't address translation files yet because CRA handles those, which isn't a trivial fix unfortunately.
Tested locally by building the PWA app and verifying the files in
public/exclude-from-precache/
don't end up in the service worker's precache manifest -- you can either 1. build the app and inspect the generatedservice-worker.js
file for any trace of files in theexclude-from-precache/
dir, or you can run thedemo
script in the PWA app, visit the app, open the dev tools, inspect the workbox precache in the CacheStorage section, and verify the omitted files aren't there.Added a few empty dummy files in the pwa app for testing.
I also tested it locally with plugins (including the fix here) and verified it's working correctly.