Has anyone got any experience of js service workers?
Hey Makers
I was using service workers on my site and recently notice an error which creates multiple service workers in some pages if no cache is present, any one has used them earlier?
The features are working like caching and offline page.. But issue is when a use directly lands on a particular page say abc.xyz/demo/index.html then scope of sw becomes abc.xyz/demo wher scope should be /, got any ideas on this?
No the issue is if visitor goes directly to abc.com/demo/anything.html the sw gets registered for abc.com/demo and if the visitor then visits abc.com then again a new sw is registered with socpe abc.com
Still unable to find the issue also i have mentioned the scope to be / in js but seems to have some error which isn't seen
Yes I know this issue so for precaution I generally use the whole url with https
Please sign in to leave a comment.