Skip to content

Service worker should cover only the PUBLIC_PATH route #4320

Closed
@FezVrasta

Description

@FezVrasta

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:)

  1. Enable the service worker
  2. set homepage to a sub-folder in package.json
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions