Performing an action and redirecting to the same URL does not refresh the page

We are working on a new site using Apache, Python and Django.

There are no problems at the development stage, but after binding to Apache using Firefox 3.5.3, we had a strange problem.

We stand:

http://website.fr/search/

When we want to change the order of the study, we send the user:

http://website.fr/search/order/price/

This page changes the session variable and redirects with code 302 to:

http://website.fr/search/

The problem is that Apache sends 302 Apache code and Firefox does not refresh the page. We have the same problem when we redirect the user to the same page as before.

How do we do to force a page refresh?

+3
3

, URL- 302 , , , . , , . .

, , unRESTful - , , .

, 303 307 302, , -.

. : http://en.wikipedia.org/wiki/HTTP_302

http://en.wikipedia.org/wiki/Representational_State_Transfer

+3

, . URL- . HTTP -, , . URL.

+1

http://website.fr/search/?ignoredvar=<random int>

, http-. . firebug live http .

Btw. - , IE.

0

Source: https://habr.com/ru/post/1719636/


All Articles