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;
}

Leave a Reply

Your email address will not be published. Required fields are marked *