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

Add a revalidation cache state and adapt transferSize to it #272

Merged
merged 4 commits into from
Jul 12, 2021

Conversation

yoavweiss
Copy link
Contributor

@yoavweiss yoavweiss commented May 7, 2021

Complementary PR to whatwg/fetch#1232

While implementing the recent Resource Timing transferSize changes, I realized that the current spec is not sufficient to implement what was discussed in the WG, and more importantly, insufficient to maintain backwards compatibility with current transferSize values.

Essentially, we want transferSize to return different values for the cases of local caching (in which case it needs to return 0), full fetch from the network (in which case it needs to return the encoded body size + a constant) as well as the successful revalidation case (where it needs to return just the constant representing the headers used to revalidate the response).


Preview | Diff

@yoavweiss yoavweiss requested a review from noamr May 7, 2021 08:42
annevk pushed a commit to whatwg/fetch that referenced this pull request May 12, 2021
@yoavweiss
Copy link
Contributor Author

@achristensen07 - I missed the fact that this PR hasn't landed yet in yesterday's call. Can you maybe take a look?

@yoavweiss yoavweiss requested a review from nicjansma July 12, 2021 12:59
@yoavweiss yoavweiss merged commit a462875 into w3c:gh-pages Jul 12, 2021
@yoavweiss yoavweiss deleted the revalidation_cache_state branch July 12, 2021 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants