利用するヘッダー CloudFrontは、リクエストヘッダーに基づいてコンテンツをキャッシュできます。 デバイス判断は、通常 User-Agent を利用しますが、User-Agent ごとにキャッシュを保存するとキャッシュ効率が悪くなります。そのため、CloudFrontでは、デバイスタイプごとにキャッシュを保存したい場合、以下のヘッダーを利用するようです。 CloudFront-Is-Desktop-Viewer CloudFront-Is-Mobile-Viewer CloudFront-Is-SmartTV-Viewer CloudFront-Is-Tablet-Viewer CloudFrontの設定 Edit Behavior Edit Behaviorを開きます。 Cache Based on Selected Request Headersの項目で設定します。 これでデバイ