According to MDN:
The onfetch property of the ServiceWorkerGlobalScope interface is an event handler fired whenever a fetch event occurs (usually when the WindowOrWorkerGlobalScope.fetch() method is called.)
Does this mean that service worker can only intercept requests sent by fetch()
from main thread? How about ajax requests? Is there any way to intercept them through service worker?