{"action":"created","issue":{"url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/381","labels_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/381/comments","events_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/381/events","html_url":"https://github.com/serbanghita/Mobile-Detect/pull/381","id":67114157,"number":381,"title":"Add support for cloudfront, includes a unit test","user":{"login":"DeviaVir","id":777823,"avatar_url":"https://avatars.githubusercontent.com/u/777823?v=3","gravatar_id":"","url":"https://api.github.com/users/DeviaVir","html_url":"https://github.com/DeviaVir","followers_url":"https://api.github.com/users/DeviaVir/followers","following_url":"https://api.github.com/users/DeviaVir/following{/other_user}","gists_url":"https://api.github.com/users/DeviaVir/gists{/gist_id}","starred_url":"https://api.github.com/users/DeviaVir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeviaVir/subscriptions","organizations_url":"https://api.github.com/users/DeviaVir/orgs","repos_url":"https://api.github.com/users/DeviaVir/repos","events_url":"https://api.github.com/users/DeviaVir/events{/privacy}","received_events_url":"https://api.github.com/users/DeviaVir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/serbanghita/Mobile-Detect/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"serbanghita","id":1106849,"avatar_url":"https://avatars.githubusercontent.com/u/1106849?v=3","gravatar_id":"","url":"https://api.github.com/users/serbanghita","html_url":"https://github.com/serbanghita","followers_url":"https://api.github.com/users/serbanghita/followers","following_url":"https://api.github.com/users/serbanghita/following{/other_user}","gists_url":"https://api.github.com/users/serbanghita/gists{/gist_id}","starred_url":"https://api.github.com/users/serbanghita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serbanghita/subscriptions","organizations_url":"https://api.github.com/users/serbanghita/orgs","repos_url":"https://api.github.com/users/serbanghita/repos","events_url":"https://api.github.com/users/serbanghita/events{/privacy}","received_events_url":"https://api.github.com/users/serbanghita/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-08T12:06:00Z","updated_at":"2015-06-18T09:48:16Z","closed_at":"2015-06-18T09:47:09Z","pull_request":{"url":"https://api.github.com/repos/serbanghita/Mobile-Detect/pulls/381","html_url":"https://github.com/serbanghita/Mobile-Detect/pull/381","diff_url":"https://github.com/serbanghita/Mobile-Detect/pull/381.diff","patch_url":"https://github.com/serbanghita/Mobile-Detect/pull/381.patch"},"body":"http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device\r\n\r\nThis PR adds compatibility with CloudFront device headers, which can be enabled for any CloudFront to Source proxy.\r\n\r\nEffectively I've added a function that tries to extract relevant CloudFront headers and when the user agent matches `Amazon CloudFront`, uses those for further device identification. Since they don't define _which_ devices they detect, but only the type, this feature only works with `isMobile` and `isTablet` functions.\r\n\r\nThe added unit test checks if the correct response is returned when feeding different cloudfront headers."},"comment":{"url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/comments/113093080","html_url":"https://github.com/serbanghita/Mobile-Detect/pull/381#issuecomment-113093080","issue_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/381","id":113093080,"user":{"login":"serbanghita","id":1106849,"avatar_url":"https://avatars.githubusercontent.com/u/1106849?v=3","gravatar_id":"","url":"https://api.github.com/users/serbanghita","html_url":"https://github.com/serbanghita","followers_url":"https://api.github.com/users/serbanghita/followers","following_url":"https://api.github.com/users/serbanghita/following{/other_user}","gists_url":"https://api.github.com/users/serbanghita/gists{/gist_id}","starred_url":"https://api.github.com/users/serbanghita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serbanghita/subscriptions","organizations_url":"https://api.github.com/users/serbanghita/orgs","repos_url":"https://api.github.com/users/serbanghita/repos","events_url":"https://api.github.com/users/serbanghita/events{/privacy}","received_events_url":"https://api.github.com/users/serbanghita/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T09:48:16Z","updated_at":"2015-06-18T09:48:16Z","body":":beers: \r\n\r\nCan you provide me with a specific business use case?"}}