{"action":"opened","number":34,"pull_request":{"url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls/34","id":45592023,"html_url":"https://github.com/GoogleChrome/sw-toolbox/pull/34","diff_url":"https://github.com/GoogleChrome/sw-toolbox/pull/34.diff","patch_url":"https://github.com/GoogleChrome/sw-toolbox/pull/34.patch","issue_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues/34","number":34,"state":"open","locked":false,"title":"networkFirst timeout","user":{"login":"jeffposnick","id":1749548,"avatar_url":"https://avatars.githubusercontent.com/u/1749548?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffposnick","html_url":"https://github.com/jeffposnick","followers_url":"https://api.github.com/users/jeffposnick/followers","following_url":"https://api.github.com/users/jeffposnick/following{/other_user}","gists_url":"https://api.github.com/users/jeffposnick/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffposnick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffposnick/subscriptions","organizations_url":"https://api.github.com/users/jeffposnick/orgs","repos_url":"https://api.github.com/users/jeffposnick/repos","events_url":"https://api.github.com/users/jeffposnick/events{/privacy}","received_events_url":"https://api.github.com/users/jeffposnick/received_events","type":"User","site_admin":false},"body":"R: @wibblymat \r\n\r\nCloses #12, although it doesn't enforce the network timeout by default.\r\n\r\nI put together a super-simple page in `demo/index.html` that registers a service worker, mainly to play around with in DevTools. It can be fleshed out a bit more in the future, which is tracked in #9.\r\n\r\nNone of the existing tests that exercise `networkFirst` break, but I didn't add any new ones—if you have any ideas for simulating a slow for just one test case, I'm all ears.\r\n\r\nThere are also miscellaneous changes to the docs—new docs for `networkTimeoutSeconds`, updates to a few copyright years, and correcting the documentation for the `cacheName` option.","created_at":"2015-09-21T19:56:08Z","updated_at":"2015-09-21T19:56:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"wibblymat","id":393358,"avatar_url":"https://avatars.githubusercontent.com/u/393358?v=3","gravatar_id":"","url":"https://api.github.com/users/wibblymat","html_url":"https://github.com/wibblymat","followers_url":"https://api.github.com/users/wibblymat/followers","following_url":"https://api.github.com/users/wibblymat/following{/other_user}","gists_url":"https://api.github.com/users/wibblymat/gists{/gist_id}","starred_url":"https://api.github.com/users/wibblymat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wibblymat/subscriptions","organizations_url":"https://api.github.com/users/wibblymat/orgs","repos_url":"https://api.github.com/users/wibblymat/repos","events_url":"https://api.github.com/users/wibblymat/events{/privacy}","received_events_url":"https://api.github.com/users/wibblymat/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls/34/commits","review_comments_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls/34/comments","review_comment_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues/34/comments","statuses_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/statuses/345f463d115f2a8fbd76a4e8a3074031f300d431","head":{"label":"GoogleChrome:network-first-timeout","ref":"network-first-timeout","sha":"345f463d115f2a8fbd76a4e8a3074031f300d431","user":{"login":"GoogleChrome","id":1778935,"avatar_url":"https://avatars.githubusercontent.com/u/1778935?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleChrome","html_url":"https://github.com/GoogleChrome","followers_url":"https://api.github.com/users/GoogleChrome/followers","following_url":"https://api.github.com/users/GoogleChrome/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChrome/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChrome/subscriptions","organizations_url":"https://api.github.com/users/GoogleChrome/orgs","repos_url":"https://api.github.com/users/GoogleChrome/repos","events_url":"https://api.github.com/users/GoogleChrome/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChrome/received_events","type":"Organization","site_admin":false},"repo":{"id":34268206,"name":"sw-toolbox","full_name":"GoogleChrome/sw-toolbox","owner":{"login":"GoogleChrome","id":1778935,"avatar_url":"https://avatars.githubusercontent.com/u/1778935?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleChrome","html_url":"https://github.com/GoogleChrome","followers_url":"https://api.github.com/users/GoogleChrome/followers","following_url":"https://api.github.com/users/GoogleChrome/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChrome/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChrome/subscriptions","organizations_url":"https://api.github.com/users/GoogleChrome/orgs","repos_url":"https://api.github.com/users/GoogleChrome/repos","events_url":"https://api.github.com/users/GoogleChrome/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChrome/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleChrome/sw-toolbox","description":"Service Worker toolbox","fork":false,"url":"https://api.github.com/repos/GoogleChrome/sw-toolbox","forks_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/forks","keys_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/teams","hooks_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/hooks","issue_events_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/events","assignees_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/tags","blobs_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/languages","stargazers_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/stargazers","contributors_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/contributors","subscribers_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/subscribers","subscription_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/subscription","commits_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/merges","archive_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/downloads","issues_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/labels{/name}","releases_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/releases{/id}","created_at":"2015-04-20T15:18:05Z","updated_at":"2015-09-16T17:53:47Z","pushed_at":"2015-09-21T19:56:08Z","git_url":"git://github.com/GoogleChrome/sw-toolbox.git","ssh_url":"git@github.com:GoogleChrome/sw-toolbox.git","clone_url":"https://github.com/GoogleChrome/sw-toolbox.git","svn_url":"https://github.com/GoogleChrome/sw-toolbox","homepage":null,"size":378,"stargazers_count":92,"watchers_count":92,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":13,"forks":8,"open_issues":13,"watchers":92,"default_branch":"master"}},"base":{"label":"GoogleChrome:master","ref":"master","sha":"acda7a07aca7432fd200ad31a82dca386307ecbe","user":{"login":"GoogleChrome","id":1778935,"avatar_url":"https://avatars.githubusercontent.com/u/1778935?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleChrome","html_url":"https://github.com/GoogleChrome","followers_url":"https://api.github.com/users/GoogleChrome/followers","following_url":"https://api.github.com/users/GoogleChrome/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChrome/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChrome/subscriptions","organizations_url":"https://api.github.com/users/GoogleChrome/orgs","repos_url":"https://api.github.com/users/GoogleChrome/repos","events_url":"https://api.github.com/users/GoogleChrome/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChrome/received_events","type":"Organization","site_admin":false},"repo":{"id":34268206,"name":"sw-toolbox","full_name":"GoogleChrome/sw-toolbox","owner":{"login":"GoogleChrome","id":1778935,"avatar_url":"https://avatars.githubusercontent.com/u/1778935?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleChrome","html_url":"https://github.com/GoogleChrome","followers_url":"https://api.github.com/users/GoogleChrome/followers","following_url":"https://api.github.com/users/GoogleChrome/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChrome/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChrome/subscriptions","organizations_url":"https://api.github.com/users/GoogleChrome/orgs","repos_url":"https://api.github.com/users/GoogleChrome/repos","events_url":"https://api.github.com/users/GoogleChrome/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChrome/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleChrome/sw-toolbox","description":"Service Worker toolbox","fork":false,"url":"https://api.github.com/repos/GoogleChrome/sw-toolbox","forks_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/forks","keys_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/teams","hooks_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/hooks","issue_events_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/events","assignees_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/tags","blobs_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/languages","stargazers_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/stargazers","contributors_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/contributors","subscribers_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/subscribers","subscription_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/subscription","commits_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/merges","archive_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/downloads","issues_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/labels{/name}","releases_url":"https://api.github.com/repos/GoogleChrome/sw-toolbox/releases{/id}","created_at":"2015-04-20T15:18:05Z","updated_at":"2015-09-16T17:53:47Z","pushed_at":"2015-09-21T19:56:08Z","git_url":"git://github.com/GoogleChrome/sw-toolbox.git","ssh_url":"git@github.com:GoogleChrome/sw-toolbox.git","clone_url":"https://github.com/GoogleChrome/sw-toolbox.git","svn_url":"https://github.com/GoogleChrome/sw-toolbox","homepage":null,"size":378,"stargazers_count":92,"watchers_count":92,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":13,"forks":8,"open_issues":13,"watchers":92,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls/34"},"html":{"href":"https://github.com/GoogleChrome/sw-toolbox/pull/34"},"issue":{"href":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues/34"},"comments":{"href":"https://api.github.com/repos/GoogleChrome/sw-toolbox/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleChrome/sw-toolbox/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleChrome/sw-toolbox/statuses/345f463d115f2a8fbd76a4e8a3074031f300d431"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":85,"deletions":35,"changed_files":9}}