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

JPERF-1435: remove JS header parsing #164

Merged
merged 3 commits into from
Nov 29, 2023

Conversation

dagguh
Copy link
Member

@dagguh dagguh commented Nov 29, 2023

For every resource (navigation, XHR, JS, CSS, image), it would send a
new HTTP request to parse headers.

The resource URI was not taken into account in the synthetic request,
so it could not infer original HTTP headers. Especially since the new
request can have different response headers than the original requests.
And even if they had the same, then it means we assume sticky session.
So we might read node id once just as well.

Supposedly, the synthetic request was being read from a cache,
but apparently it's still too much overhead.

We'll have to read the node id from Server-Timing header,
which is automatically captured by the browser
and it's the same way we obtain the response thread id.

For every resource (navigation, XHR, JS, CSS, image), it would send a
new HTTP request to parse headers.

The resource URI was not taken into account in the synthetic request,
so it could not infer original HTTP headers. Especially since the new
request can have different response headers than the original requests.
And even if they had the same, then it means we assume sticky session.
So we might read node id once just as well.

Supposedly, the synthetic request was being read from a cache,
but apparently it's still too much overhead.

We'll have to read the node id from `Server-Timing` header,
which is automatically captured by the browser
and it's the same way we obtain the response thread id.
@dagguh dagguh merged commit 575b559 into master Nov 29, 2023
4 of 7 checks passed
@dagguh dagguh deleted the issue/JPERF-1435-remove-js-header-parsing branch November 29, 2023 14:50
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

Successfully merging this pull request may close these issues.

2 participants