Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get correct connectStart/End values of a proxied http request inside service worker? #1663

Open
xiaofud opened this issue Nov 25, 2022 · 0 comments

Comments

@xiaofud
Copy link

xiaofud commented Nov 25, 2022

Our website uses service worker to proxy http requests. When service worker is enabled, the connectStart and connectEnd values returned by window.performance API are always the same as workerStart. If we disable service worker, these values become correct, and we can then measure the DNS cost, TCP connection cost.

Image 1, service worker enabled:

image

Image 2, without service worker:
image

I find something useful in Chrome Dev Tool. How can I access this timing info in service worker?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant