Detecting WeChat In-App Browser via Nginx User-Agent

You can use this directive to check for WeChat in-app browser and set cache off:

if ($http_user_agent ~* "MicroMessenger") {
  set $skip_cache 1;
}