-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Should "reload-triggered navigation" be more strictly defined? #5222
Comments
I'm aware of two behaviours which differ based on whether the request is considered a reload in the specification. They are whether forms get resubmitted and if the referrer from the previous request is included in the 'reload request'. Browsers also have their own minor UI/UX differences such as whether input in unsubmitted forms gets restored after the navigation. Firefox restores it when the reload button is used but not when hitting enter on the URL bar, while Safari restores it in both cases and Chrome clears it in both cases. These differences can be useful in practice to either precisely repeat the same navigation as before (in cases where the page fails to load for example), or to discard unwanted input from the current page and start over with a blank slate. The ability to (re)navigate without keeping the referrer from the previous request is also helpful on pages that serve different content based on this header. I believe these differences make the actions sufficiently different that hitting enter in the URL bar should be considered a "fresh load" rather than a reload, from both the browser and the site's perspective. |
HTML should at least define infrastructure for |
Youenn reminded me there's a good reason to standardize this. It ends up changing the request's cache mode which is a web-exposed field (through For a "hard reload" browsers will use the " There's corresponding discussion in whatwg/fetch#289. |
In w3c/navigation-timing#116 we have an issue where it's unclear if certain browser UX gestures (e.g. focusing the URL bar and hitting enter) should be considered a "reload" or not. Ideally, I'd like Navigation Timing to just use the "reload triggered navigation" flag to determine the navigation type.
While discussing this issue, we realized that many aspects of reloading are not tightly defined. E.g. there's no "force reload" definition in HTML (or at least we failed to find one), no clear mapping from UX gestures to navigation types, etc.
Since different browsers do different things here, should it be more strictly defined? Or should this live in the realm of user agent UX, and not be further standardized?
/cc @rniwa @npm1
The text was updated successfully, but these errors were encountered: