Topic
2 replies Latest Post - ‏2012-12-03T13:19:19Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts
ACCEPTED ANSWER

Pinned topic x param in the form data

‏2012-11-30T14:50:58Z |
In every request form data there's an 'x' param with value between 0 and 1 (ie. x:0.775084022898227).
It's different for every request.
Does anyone know what is it used for and can it be removed?

Thanks.
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: x param in the form data

    ‏2012-11-30T15:31:47Z  in response to SystemAdmin
    Not sure where you're seeing this, but it's fairly common to add a random number when submitting form data to prevent people from accidentally re-submitting.

    More: http://stackoverflow.com/a/2731432/186909

    As a general rule, you shouldn't remove or change things you don't fully understand, it may cause bugs that are hard to track down.
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: x param in the form data

      ‏2012-12-03T13:19:19Z  in response to SystemAdmin
      Seems it is set by the worklight to prevent caching on API calls.
      I was just curious if it is used for something else.