-
Notifications
You must be signed in to change notification settings - Fork 19
Description
I found the docs for NEL led me in entirely the wrong direction, expecting it to be essentially CSP-style reporting for network problems. for example, if my web page loads a script from some other location, but its cert has expired, or it 404s, as the web page author I want to know about that. It's much less interesting (to me) that the owner of the resource receives the report – after all, they will already see nearly all of these events in their server-side logs anyway, whereas this would likely be the only way that I can see client-side errors.
The initial problem of getting the NEL header in the first place adds confusion, and I agree with the sentiment behind #173. I have direct control over the headers and endpoints for my own domain, and I'm far more interested in my use of external resources than I am in other people's use of mine (perhaps it might be different if I was operating say, a CDN).
The introductory text of the spec doesn't make this orientation clear:
Today, application developers do not have real-time web application availability data from their end users. For example, if the user fails to load the page due to a network error, such as a failed DNS lookup, a connection timeout, a reset connection, or other reasons, the site developer is unable to detect and address this issue.
My confusion arises because this describes exactly my position as a web app / site developer, not the owner of the resource: "a problem occurred on your site for a certain subset of your users, but I'm not going to tell you, I'm going to tell someone else". The net result is that the site developer that implements NEL is still unable to detect and address this issue. A small example or diagram would work wonders here.
Meanwhile, is there any proposal or option to make it work this way (the only real difference would be report destinations)? Or perhaps some other reporting system that does?