Skip to content

Renaming the SW script file is sometimes okay #1

@ithinkihaveacat

Description

@ithinkihaveacat

Never rename the ServiceWorker script file

Sometimes this can be helpful, in particular in cases where you can't change the service worker itself, but it imports scripts (perhaps from another origin) that do change. In this case, changing the name of the service worker creates a "new" service worker that leads to the browser re-checking and re-downloading all dependencies. (More info.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions