{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/4541","repository_url":"https://api.github.com/repos/GoogleChrome/lighthouse","labels_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/4541/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/4541/comments","events_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/4541/events","html_url":"https://github.com/GoogleChrome/lighthouse/issues/4541","id":297268911,"number":4541,"title":"Service worker does not successfully serve the manifest's start_url.","user":{"login":"gauntface","id":139760,"avatar_url":"https://avatars0.githubusercontent.com/u/139760?v=4","gravatar_id":"","url":"https://api.github.com/users/gauntface","html_url":"https://github.com/gauntface","followers_url":"https://api.github.com/users/gauntface/followers","following_url":"https://api.github.com/users/gauntface/following{/other_user}","gists_url":"https://api.github.com/users/gauntface/gists{/gist_id}","starred_url":"https://api.github.com/users/gauntface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauntface/subscriptions","organizations_url":"https://api.github.com/users/gauntface/orgs","repos_url":"https://api.github.com/users/gauntface/repos","events_url":"https://api.github.com/users/gauntface/events{/privacy}","received_events_url":"https://api.github.com/users/gauntface/received_events","type":"User","site_admin":false},"labels":[{"id":703804903,"url":"https://api.github.com/repos/GoogleChrome/lighthouse/labels/needs-investigation","name":"needs-investigation","color":"d4c5f9","default":false},{"id":703688541,"url":"https://api.github.com/repos/GoogleChrome/lighthouse/labels/needs-priority","name":"needs-priority","color":"ffffff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-14T22:30:42Z","updated_at":"2018-02-20T15:05:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This error is actually pretty hard to fix if you think you are.\r\n\r\nAt the moment I'm caching the index.html page and I've set the start_url to index.html and I still get this error. \r\n\r\nI can even go from `DevTools > Application > Manifest > start_url` link to the page, switch to offline in network panel and reload the page and get the full page from the service worker.\r\n\r\nAny ideas how to debug this?"},"comment":{"url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/comments/367006053","html_url":"https://github.com/GoogleChrome/lighthouse/issues/4541#issuecomment-367006053","issue_url":"https://api.github.com/repos/GoogleChrome/lighthouse/issues/4541","id":367006053,"user":{"login":"icyJoseph","id":21013447,"avatar_url":"https://avatars2.githubusercontent.com/u/21013447?v=4","gravatar_id":"","url":"https://api.github.com/users/icyJoseph","html_url":"https://github.com/icyJoseph","followers_url":"https://api.github.com/users/icyJoseph/followers","following_url":"https://api.github.com/users/icyJoseph/following{/other_user}","gists_url":"https://api.github.com/users/icyJoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/icyJoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icyJoseph/subscriptions","organizations_url":"https://api.github.com/users/icyJoseph/orgs","repos_url":"https://api.github.com/users/icyJoseph/repos","events_url":"https://api.github.com/users/icyJoseph/events{/privacy}","received_events_url":"https://api.github.com/users/icyJoseph/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T15:05:12Z","updated_at":"2018-02-20T15:05:12Z","author_association":"NONE","body":"I could of course be wrong, but yes. There seems to be a false negative. Please refer to:\r\n\r\n- https://developers.google.com/web/tools/lighthouse/audits/cache-contains-start_url\r\n- https://github.com/GoogleChrome/lighthouse/issues/4312\r\n- https://stackoverflow.com/questions/45330087/manifest-start-url-is-not-cached-by-a-service-worker\r\n\r\nThe blame seems to come from: \r\nhttps://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/audits/webapp-install-banner.js\r\n\r\nIn line 78, \r\n\r\n``` javascript\r\nstatic assessOfflineStartUrl(artifacts, result) {\r\n    const hasOfflineStartUrl = artifacts.StartUrl.statusCode === 200;\r\n\r\n    if (!hasOfflineStartUrl) {\r\n      result.failures.push('Service worker does not successfully serve the manifest\\'s start_url');\r\n      if (artifacts.StartUrl.debugString) result.failures.push(artifacts.StartUrl.debugString);\r\n    }\r\n\r\n    if (artifacts.StartUrl.debugString) {\r\n      result.warnings.push(artifacts.StartUrl.debugString);\r\n    }\r\n  }\r\n```\r\n\r\nHopefully this gives you more insight on to how to fix your problem. For me this is as far as I go to jump over a false negative."}}
{"actor":{"display_login":"icyJoseph"}}