This plugin will add support for device detection using CloudFront device type headers. Support for other CloudFront features may be added in the future.
- extract the plugin to
/farcry/plugins/cloudfront
- register the plugin in your
farcryContructor.cfm
- configure your CloudFront distribution to support device type detection
CloudFront Distribution configurations will vary based on your app's specific requirements. We provide some common configuration strategies for reference.
If you have an adaptive layout strategy of providing distinct templates for say desktop and mobile you will need to make some specific configuraiton changes to allow FarCry to switch on device type.
- Configure CloudFront to cache objects based on the CloudFront device type headers
- Add the cookie name
FARCRYDEVICETYPE
to the whitelist of forwarded cookies