-
Notifications
You must be signed in to change notification settings - Fork 337
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
Cache mode: fromCache #40
Comments
Given that the use case for this is w3c/ServiceWorker#412 (comment) which is somewhat obscure, I'm not planning on addressing this for now. |
I don't think that the linked use case is all that valid regarding this feature. I'd say this #39 (comment) is much more applicable. Determining whether a resource comes from the cache is an important part of the bandwidth estimation that must be handled when serving adaptive bitrate video content. The |
Yes, but from that issue we also know that |
Perhaps it's best to remove the "cache state" concept from the specification for now until we find a way to address these issues. |
Hmm... Given that the security concerns would be largely circumvented if the server allows the client to sends Of course this would require a CORS pre-flight request to discover, which means that the |
FWIW - I think this is a bit different than Exposing What it does do is slightly improve confidence as opposed to cache timing attacks (but they're pretty conclusive anyway, AIUI). |
Maybe, within server respons headers |
As Resource Timing exposes some this information, it's reasonable to consider exposing it directly on |
A complementary API to this might be a more explicit opt-in for surfacing 304 responses to the caller, saving the browser from obtaining the full response from the cache. (This is already possible if the caller sets certain headers themselves, but perhaps that ought to have a more abstract entry point as well.) |
We want to introduce
fromCache
member onResponse
objects. However, this in part depends on how we tackle #38 and also #39 of course. If aResponse
is partially formed from a cached entry, should it say"partial"
?The text was updated successfully, but these errors were encountered: