varnish でuser-agent(のグループ) ごとにキャッシュする - うまいぼうぶろぐ
モバイルフレンドリーなサイトのキャッシュ - Qiita
↓varnishのモジュール
GitHub - willemk/varnish-mobiletranslate: Tool to translate the latest mobile detect script into varnish
Device detection — Varnish version 4.1.10 documentation
vcl_hash ではなく vcl_backend_response で Vary ヘッダに追加
↓
vcl_hash に追加すると purge が面倒