Skip to content

farcrycore/plugin-cloudfront

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Amazon CloudFront plugin for FarCry Core 7.x

This plugin will add support for device detection using CloudFront device type headers. Support for other CloudFront features may be added in the future.

Installation

  • extract the plugin to /farcry/plugins/cloudfront
  • register the plugin in your farcryContructor.cfm
  • configure your CloudFront distribution to support device type detection

Configure CloudFront

CloudFront Distribution configurations will vary based on your app's specific requirements. We provide some common configuration strategies for reference.

Mobile Templates

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.

  1. Configure CloudFront to cache objects based on the CloudFront device type headers

Whitelist device type headers

  1. Add the cookie name FARCRYDEVICETYPE to the whitelist of forwarded cookies

Whitelist cookies

About

Amazon CloudFront plugin for FarCry Core 7.x

Resources

Stars

Watchers

Forks

Packages

No packages published