Reliable browser HTTP mocking using Service Workers