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 .

链接地址: http://www.djcxy.com/p/72634.html

上一篇: Dart语言支持异步/等待编程风格,或类似?

下一篇: 在HTTP请求期间识别客户端Web应用程序的版本