SharePoint Online service worker functionality

Senior Member

Hello,

I'd like to understand what SharePoint Online service worker does, and is it possible to register your own service workers?

Why I'm asking this - I've registered service worker with scope https://tenant.sharepoint.com/sites/, so that I can intercept events from any site collection in my tenant. But I've noticed that SharePoint Online also has service worker registered in root scope - odspserviceworkerproxy.aspx.

If I register my service worker with more specific scope, then only my service worker will receive all the requests, say, from site https://tenant.sharepoint.com/sites/xxx.

So, what does SharePoint Online service worker do, so I can understand, what will be the impact of adding my service worker?

 

I also had a discussion here,  but didn't really get a definitive answer. Microsoft 365 support suggested me to create a discussion here as well, in hopes that some developer will provide information.

 

Thank you!

0 Replies