It seems Firefox Android specifically (not Desktop) has a bug where fetch requests issued from web workers are not forwarded to the service worker when Wi-Fi is off (or if there is no Internet connection). It works perfectly when Wi-Fi is on, and the service worker serves cached data in that case.
Error is
TypeError: NetworkError when attempting to fetch resource.
when fetch is called.
Seems to be the same issue as found in other projects: WordPress/wordpress-playground#1645
It seems Firefox Android specifically (not Desktop) has a bug where
fetchrequests issued from web workers are not forwarded to the service worker when Wi-Fi is off (or if there is no Internet connection). It works perfectly when Wi-Fi is on, and the service worker serves cached data in that case.Error is
TypeError: NetworkError when attempting to fetch resource.when
fetchis called.Seems to be the same issue as found in other projects: WordPress/wordpress-playground#1645