Web client version identification during HTTP requests

We have a one-page application that we ship on a regular basis. In rare cases, the client version has an error and sends a bad request to the server. Even after you submit the update, there is a possibility that older versions of the client may be delayed.

In these circumstances, it would be useful for the client to send the version identifier along with our requests, so that we know if the version of the code base initiated it.

Are there any existing methods for this scenario? Attaching an extra header seems like a simple solution, but I don't want to set new horizons if this problem is already resolved.

+7
javascript ajax web-applications single-page-application
source share
1 answer

We just use custom HTTP X- headers. Something like X-Client-Version and X-Client-Name .

+4
source

All Articles