Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 370
Brad Koch Avatar asked Jul 05 '13 14:07

Brad Koch


1 Answers

We're simply using custom HTTP X- headers. Something like X-Client-Version and X-Client-Name.

like image 129
Brad Koch Avatar answered Oct 24 '22 02:10

Brad Koch