You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there is some spec about the expiration of a service-worker in the browser. If not this could result in the following problem :
Let's say I decide to create a website and cache all the content with a service-worker (except for the service-worker file) so that the website is available offline.
If someone buy the same domain name later and adds a website without a service-worker, the people that previously went on my website would never see the new website (unless they clear the service-worker by hand). What's more the new owner of the domain name would not even know about it
If you want to target service workers specifically, requests for service worker scripts are sent with a Service-Worker: script header. Servers could react to that and serve a service worker which uninstalls itself.
I was wondering if there is some spec about the expiration of a service-worker in the browser. If not this could result in the following problem :
Let's say I decide to create a website and cache all the content with a service-worker (except for the service-worker file) so that the website is available offline.
If someone buy the same domain name later and adds a website without a service-worker, the people that previously went on my website would never see the new website (unless they clear the service-worker by hand). What's more the new owner of the domain name would not even know about it
Linked to https://github.com/mozilla/serviceworker-cookbook/issues/327
PS : I talked about this in #1366 but never got an answer
The text was updated successfully, but these errors were encountered: