Extend CloudFront support
randompch opened this issue · comments
Hi, I really enjoy this module but an extended CloudFront support would help me greatly.
I noticed that it now exposed new User Agent headers. Though it might not be the default CloudFront behavior, I have access to them and need to use it for SSR.
Here is the complete list :
CloudFront-Is-Android-Viewer
– Set to true when CloudFront determines that the viewer is a device with the Android operating system.CloudFront-Is-Desktop-Viewer
– Set to true when CloudFront determines that the viewer is a desktop device.CloudFront-Is-IOS-Viewer
– Set to true when CloudFront determines that the viewer is a device with an Apple mobile operating system, such as iPhone, iPod touch, and some iPad devices.CloudFront-Is-Mobile-Viewer
– Set to true when CloudFront determines that the viewer is a mobile device.CloudFront-Is-SmartTV-Viewer
– Set to true when CloudFront determines that the viewer is a smart TV.CloudFront-Is-Tablet-Viewer
– Set to true when CloudFront determines that the viewer is a tablet.Source : Using Cloudfront Headers
I've added a wrapper to my project in order to use both these new headers and this module's API but extending its CloudFront support sounds like a better idea that would benefit many !
I'd be glad to help updating this repository (both for Nuxt 2 and 3) 💪