Closed
Description
Is this a bug report?
yes
Did you try recovering your dependencies?
Not related
Which terms did you search for in User Guide?
service worker
Steps to Reproduce
(Write your steps here:)
- Enable the service worker
- set
homepage
to a sub-folder in package.json - Try to open another page running in a different sub-folder
Expected Behavior
The current service worker file (serviceWorker.js) doesn't addresses the case when the app is server from a sub route, it should make sure to cache and serve assets only on the PUBLIC_PATH route.
Actual Behavior
The service worker will try to cache and serve all the domain assets.
Reproducible Demo
No demo needed I guess. (and anyway I'm not sure how to provide one actually)