{"action":"created","issue":{"url":"https://api.github.com/repos/xuset/planktos/issues/38","repository_url":"https://api.github.com/repos/xuset/planktos","labels_url":"https://api.github.com/repos/xuset/planktos/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/xuset/planktos/issues/38/comments","events_url":"https://api.github.com/repos/xuset/planktos/issues/38/events","html_url":"https://github.com/xuset/planktos/pull/38","id":205367587,"number":38,"title":"Move fetch() to lib","user":{"login":"xuset","id":4952039,"avatar_url":"https://avatars.githubusercontent.com/u/4952039?v=3","gravatar_id":"","url":"https://api.github.com/users/xuset","html_url":"https://github.com/xuset","followers_url":"https://api.github.com/users/xuset/followers","following_url":"https://api.github.com/users/xuset/following{/other_user}","gists_url":"https://api.github.com/users/xuset/gists{/gist_id}","starred_url":"https://api.github.com/users/xuset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuset/subscriptions","organizations_url":"https://api.github.com/users/xuset/orgs","repos_url":"https://api.github.com/users/xuset/repos","events_url":"https://api.github.com/users/xuset/events{/privacy}","received_events_url":"https://api.github.com/users/xuset/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-04T18:48:02Z","updated_at":"2017-02-05T18:27:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xuset/planktos/pulls/38","html_url":"https://github.com/xuset/planktos/pull/38","diff_url":"https://github.com/xuset/planktos/pull/38.diff","patch_url":"https://github.com/xuset/planktos/pull/38.patch"},"body":"Moving fetch() to lib is part of #36. To goal is to simplify the service worker so it's easy to customize while providing the right set of tools in the lib. \r\n\r\nThe big issue encountered with this was after moving fetch() to lib is, it was not possible to differentiate between requests for planktos assets (plankots.min.js, root.torrent, etc) from webseed requests within the service worker. Not being able to differentiate these forced the service worker to handle webseed requests instead of the browser which had a big performance impact (downloads were 2-3x slower). By changing webseed request urls to `<origin>/planktos/files/<hash>` instead of `<origin>/planktos/<hash>` the service worker can detect the webseed request and let the browser handle it instead. This required copying the website files to `planktos/files` instead of `planktos`."},"comment":{"url":"https://api.github.com/repos/xuset/planktos/issues/comments/277538408","html_url":"https://github.com/xuset/planktos/pull/38#issuecomment-277538408","issue_url":"https://api.github.com/repos/xuset/planktos/issues/38","id":277538408,"user":{"login":"xuset","id":4952039,"avatar_url":"https://avatars.githubusercontent.com/u/4952039?v=3","gravatar_id":"","url":"https://api.github.com/users/xuset","html_url":"https://github.com/xuset","followers_url":"https://api.github.com/users/xuset/followers","following_url":"https://api.github.com/users/xuset/following{/other_user}","gists_url":"https://api.github.com/users/xuset/gists{/gist_id}","starred_url":"https://api.github.com/users/xuset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuset/subscriptions","organizations_url":"https://api.github.com/users/xuset/orgs","repos_url":"https://api.github.com/users/xuset/repos","events_url":"https://api.github.com/users/xuset/events{/privacy}","received_events_url":"https://api.github.com/users/xuset/received_events","type":"User","site_admin":false},"created_at":"2017-02-05T18:27:04Z","updated_at":"2017-02-05T18:27:04Z","body":"@georgeaf99 Since I based it off of the priority branch, once you give it the thumbs up I'll just squash my local branch and push to master"}}
{"actor":{"display_login":"xuset"}}