{"action":"closed","issue":{"url":"https://api.github.com/repos/morris/typekit-cache/issues/2","labels_url":"https://api.github.com/repos/morris/typekit-cache/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/morris/typekit-cache/issues/2/comments","events_url":"https://api.github.com/repos/morris/typekit-cache/issues/2/events","html_url":"https://github.com/morris/typekit-cache/issues/2","id":105761423,"number":2,"title":"An issue with Windows Phone and older devices","user":{"login":"ArtemGordinsky","id":1506254,"avatar_url":"https://avatars.githubusercontent.com/u/1506254?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemGordinsky","html_url":"https://github.com/ArtemGordinsky","followers_url":"https://api.github.com/users/ArtemGordinsky/followers","following_url":"https://api.github.com/users/ArtemGordinsky/following{/other_user}","gists_url":"https://api.github.com/users/ArtemGordinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemGordinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemGordinsky/subscriptions","organizations_url":"https://api.github.com/users/ArtemGordinsky/orgs","repos_url":"https://api.github.com/users/ArtemGordinsky/repos","events_url":"https://api.github.com/users/ArtemGordinsky/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemGordinsky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/morris/typekit-cache/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-10T08:47:42Z","updated_at":"2015-09-10T10:38:16Z","closed_at":"2015-09-10T10:38:16Z","body":"For a long time, we have been observing lots of strange requests that usually looked like this:\r\n```\r\nhttps://ourdomain.com/f/Cf18XFAS[...].woff?3bb2a6e53c9684ffdc9a98f5[...]\r\nhttps://ourdomain.com/f/9vhG4QCD[...].otf?3bb2a6e53c9[...]\r\n```\r\nMost of these were coming from Windows Phone devices, but there also were some really old Android and iOS devices. After much debugging, we have found these requests to be made by the browser, when trying to download the fonts from the font-face declaration in Typekit's stylesheets, that were embedded into the page by this script. This was weird, because Typekit always had base64-encoded fonts in their stylesheets. When, however, we changed the useragent to Windows Phone, Typekit returned stylesheets with links to the resources instead, so that font-face declaration looked like this:\r\n\r\n```css\r\n@font-face {\r\n    font-family: \"alwyn-new-web\";\r\n    src: url(/f/LxfQHh_wQ[...].woff2?3bb2a6e53c968[...]) format(\"woff2\") [..]\r\n}\r\n```\r\n\r\nSo when this script was inlined into the page, the browsers were trying to load the fonts from our domain, which resulted in the requests I have shown at the start.\r\n\r\nI guess the caching script must parse the css and ensure that it contains only base64 resources, and no relative urls before inlining it?\r\n"}}