-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Unless I misunderstand and misconfigure the ServiceWorkerPreCacheExcludeFiles
and ServiceWorkerPreCacheExcludeReleaseFiles
, we can't explicitly add things to the requiredFiles
array that will be cached.
Being able to explicitly add resources can be helpful when your data comes from a some REST endpoint (e.g., a controller) and not from a static file, which I expect will be common in a real app.
EDIT: This can also be helpful for static assets used by other packages - they are not in the project folder so they won't be generated, but they need to be cached as well.
While I can edit the array myself, I must remember to edit it again after re-generating anything from the PWA infrastructure, which is error prone. I'd rather not add another js file of my own to try to add to the cache myself (this is my first touch with a PWA and I'll probably mess something up).