jquery-pjax icon indicating copy to clipboard operation
jquery-pjax copied to clipboard

Version changing between POSTs results in loss of POST data

Open 0b10011 opened this issue 10 years ago • 8 comments

Reproducing results

  1. Load a multi-step form
  2. Submit to go on to the second step
  3. Change version sent in response header
  4. Submit to go on to third step

Expected results

  • POST data from first/second step should be retained

Actual results

  • POST data from first/second step is lost

A possible solution would be to send the version in a request header, require the server to check it before processing POST data (perhaps with a flag via response header to avoid repeating actions), and then resubmit the POST data the old-fashioned way. (See #357.)

0b10011 avatar Feb 25 '14 21:02 0b10011