Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

215
Visualizações
What is the correct specification for reloading after rewriting using window.history.replaceState on a page after a POST transition?

First, see the differences between browsers below.

  • Google Chrome
  • Firefox
  • Safari

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.

/register /register-history-push-state
enter image description here enter image description here
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?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda