w3c / network-error-logging

Network Error Logging
https://w3c.github.io/network-error-logging/
Other
80 stars 18 forks source link

NEL cache should be partitioned #138

Closed yoavweiss closed 1 year ago

yoavweiss commented 1 year ago

136 and the related paper point out an issue with the fact that the NEL cache is not partitioned. While in practice it is partitioned in Chromium, we should fix the spec to reflect that.

clelland commented 1 year ago

@jyasskin suggested that we can use the storage key concept from https://github.com/whatwg/storage as a partition key in this spec.

I think we'd need a note that implementers can use stronger keys, but that should set a minimum bar. And then if Storage adopts double- or triple-keying, NEL should get that for free at that point.

annevk commented 1 year ago

Shouldn't it use the network partition key?

clelland commented 1 year ago

Is that concept defined in a spec? I can imagine that it would be a better fit, but I'm not certain

annevk commented 1 year ago

Yes, in Fetch.