Identifying the version of a client web app during HTTP requests
We have a single page application which we ship changes to on a regular basis. On rare occasion, a version of the client has a bug and submits a bad request to the server. Even after you ship out an update, there's a possibility old versions of the client can linger.
In these circumstances, it would be useful for the client to send a version identifier along with our requests so that we know whether which version of the code base initiated it.
Are there any existing best practices for this scenario? Attaching an extra header seems like a simple solution, but I don't want to tread new ground if this problem has already been addressed.
We're simply using custom HTTP X-
headers. Something like X-Client-Version
and X-Client-Name
.