[wp-trac] [WordPress Trac] #36995: Support for Service Workers

WordPress Trac noreply at wordpress.org
Sun Jul 8 15:35:38 UTC 2018


#36995: Support for Service Workers
-------------------------+-------------------------------------------------
 Reporter:  bhubbard     |       Owner:  westonruter
     Type:  feature      |      Status:  accepted
  request                |
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  javascript, administration,
                         |  performance
-------------------------+-------------------------------------------------

Comment (by westonruter):

 I realized that the ability to register arbitrary path scopes for a given
 service worker script may needlessly complicating the implementation. On
 further reflection, it seems a script should only ever be registered for
 the frontend (scope `/`) and the admin (scope `/wp-admin/`). The frontend
 scope would by default include the admin, unless the home URL and the site
 URL differ.

 Having arbitrary scopes makes it harder to unregister service workers that
 go away, such as via plugin deactivation. See https://github.com/xwp/pwa-
 wp/issues/26#issuecomment-403268267

 Do we even really need a separate scope for admin vs frontend or should
 there just be one scope for the root of a site?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36995#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list