First, see the differences between browsers below.
Two types of POST destination endpoints /register
and /register-history-push-state
are provided, but the essential difference is whether or not the following JavaScript is executed.
window.history.replaceState("", "", "/register-history-push-state");
If you reload the page after the POST transition, you will see that the HTTP Method on reload is different, as follows
Reload HTTP Method(NOT exec replaceState) | Reload HTTP Method(exec replaceState) | |
---|---|---|
Chrome | POST |
GET |
Firefox | POST |
GET |
Safari | POST |
POST |
The specification of url and history update steps does not clearly state here Not found.
Which pattern of behaviour is the correct browser specification?