S
S
StrangeAttractor2015-01-31 03:37:39
Google Chrome
StrangeAttractor, 2015-01-31 03:37:39

How to refresh a page with a POST request without resubmitting the data (force the browser to just reload the URL)?

The question is not fundamental from a practical point of view. You can just copy the URL, open a new tab and paste. But it's not so interesting. Here I have a page open at a certain address in the process of going to which some data was transferred in the POST format. If I press F5, the browser asks whether to repeat sending the data, while there are options to either repeat or cancel, i.e. cancel the page reload operation. If you go to the address bar and just press Enter without changing the URL, nothing happens. What other options are there? As far as I have noticed, all browsers suffer from this, so I'm interested in answers for all.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim Misbakh-Soloviev, 2015-01-31
@mva

F6+Enter? ;)
// and not "refresh the page with a POST request" (because that would be resending it), but make a "GET request to the same address".
Always yours,
K.O.

A
Arman, 2015-01-31
@Arik

It depends on the data you are transferring, if you just need to save and the display on this page does not depend on what was sent, then you can simply redirect to yourself. If this is a search page or the content simply depends on variables, then it's better to just pass everything with a ghetto.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question