-
Notifications
You must be signed in to change notification settings - Fork 30
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
A scenario where transferSize is 0 for non cached loads (or may be not) #146
Comments
@yoavweiss may know why we'd report 0 when it's not cached. It might be useful to provide a way to reproduce this issue |
is the sequence of events I observed. |
In the attached screencast, the transfer size is as expected when the user goes to Notifications page after it was fully cached. happy-case-zero-ts.mp4 |
This screencast shows the tricky case, where the user navigates to Notifications page before it is fully cached. The transferSize also shows zero here. As a developer, is there a native way to differentiate this from the above happy case? trick-case.mp4 |
@Nithanaroy - This seems like a Chromium issue, rather than a spec issue. Can you file a crbug? |
@yoavweiss, filed one at https://bugs.chromium.org/p/chromium/issues/detail?id=1228610 |
"they" == @npm1 and me :) If after looking at this we'd see that there's spec clarifications to be made, we'd come back here with those conclusions. |
See here. Maybe we should clarify in a non-normative note that changing the |
@noamr - Is the Fetch spec clarifying request coalescing beyond this bit on the HTTP cache? IIUC, the scenario we have here is that we have 2 requests that are being coalesced by the network, and I'm not sure what we should do here is properly defined and tested. |
whatwg/fetch#1329 is the first step in addressing this. However, the issue specifically with response coalescing is that it's not a standard feature, but rather a Chromium implementation detail. So I would suggest to identify this behavior is a Chrome bug. |
I think there's no spec issue here, just an implementation bug, so closing for now. Let's re-open if we discover there are clarifications to be made. |
On LinkedIn Lite, I wish to change the app's functionality based on whether the current page was loaded from cache or network. As per https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-transfersize,
transferSize === 0
should be a safe way to estimate this. But in situations when the user clicks on the link that is still being cached, Chrome reports the transferSize to be 0, even though it was downloaded from the network. Is there a native way to filter out these cases as non-cache loads?The text was updated successfully, but these errors were encountered: