Flexible http request interception using ServiceWorker