SharePoint Online service worker functionality

%3CLINGO-SUB%20id%3D%22lingo-sub-2996491%22%20slang%3D%22en-US%22%3ESharePoint%20Online%20service%20worker%20functionality%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2996491%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI'd%20like%20to%20understand%20what%20SharePoint%20Online%20service%20worker%20does%2C%20and%20is%20it%20possible%20to%20register%20your%20own%20service%20workers%3F%3C%2FP%3E%3CP%3EWhy%20I'm%20asking%20this%20-%20I've%20registered%20service%20worker%20with%20scope%20%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fsites%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsites%3C%2FA%3E%2F%2C%20so%20that%20I%20can%20intercept%20events%20from%20any%20site%20collection%20in%20my%20tenant.%20But%20I've%20noticed%20that%20SharePoint%20Online%20also%20has%20service%20worker%20registered%20in%20root%20scope%20-%20%3CA%20href%3D%22http%3A%2F%2Fodspserviceworkerproxy.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eodspserviceworkerproxy.aspx%3C%2FA%3E.%3C%2FP%3E%3CP%3EIf%20I%20register%20my%20service%20worker%20with%20more%20specific%20scope%2C%20then%20only%20my%20service%20worker%20will%20receive%20all%20the%20requests%2C%20say%2C%20from%20site%20%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fsites%2Fxxx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsites%2Fxxx%3C%2FA%3E.%3C%2FP%3E%3CP%3ESo%2C%20what%20does%20SharePoint%20Online%20service%20worker%20do%2C%20so%20I%20can%20understand%2C%20what%20will%20be%20the%20impact%20of%20adding%20my%20service%20worker%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3EI%20also%20had%20a%20discussion%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fanswers%2Fquestions%2F454435%2Fsharepoint-online-service-worker-functionality.html%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E%2C%26nbsp%3B%20but%20didn't%20really%20get%20a%20definitive%20answer.%20Microsoft%20365%20support%20suggested%20me%20to%20create%20a%20discussion%20here%20as%20well%2C%20in%20hopes%20that%20some%20developer%20will%20provide%20information.%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3EThank%20you!%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2996491%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EService%20worker%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
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