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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With