{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/ServiceWorker/issues/839","repository_url":"https://api.github.com/repos/w3c/ServiceWorker","labels_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/839/labels{/name}","comments_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/839/comments","events_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/839/events","html_url":"https://github.com/w3c/ServiceWorker/issues/839","id":135705683,"number":839,"title":"Consider relying on eTags (or other headers) for service worker dependencies to check for updates","user":{"login":"delapuente","id":757942,"avatar_url":"https://avatars.githubusercontent.com/u/757942?v=3","gravatar_id":"","url":"https://api.github.com/users/delapuente","html_url":"https://github.com/delapuente","followers_url":"https://api.github.com/users/delapuente/followers","following_url":"https://api.github.com/users/delapuente/following{/other_user}","gists_url":"https://api.github.com/users/delapuente/gists{/gist_id}","starred_url":"https://api.github.com/users/delapuente/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delapuente/subscriptions","organizations_url":"https://api.github.com/users/delapuente/orgs","repos_url":"https://api.github.com/users/delapuente/repos","events_url":"https://api.github.com/users/delapuente/events{/privacy}","received_events_url":"https://api.github.com/users/delapuente/received_events","type":"User","site_admin":false},"labels":[{"id":76212658,"url":"https://api.github.com/repos/w3c/ServiceWorker/labels/decided","name":"decided","color":"eb6420","default":false},{"id":27640698,"url":"https://api.github.com/repos/w3c/ServiceWorker/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/w3c/ServiceWorker/milestones/3","html_url":"https://github.com/w3c/ServiceWorker/milestone/3","labels_url":"https://api.github.com/repos/w3c/ServiceWorker/milestones/3/labels","id":825216,"number":3,"title":"Version 2","description":null,"creator":{"login":"KenjiBaheux","id":6354698,"avatar_url":"https://avatars.githubusercontent.com/u/6354698?v=3","gravatar_id":"","url":"https://api.github.com/users/KenjiBaheux","html_url":"https://github.com/KenjiBaheux","followers_url":"https://api.github.com/users/KenjiBaheux/followers","following_url":"https://api.github.com/users/KenjiBaheux/following{/other_user}","gists_url":"https://api.github.com/users/KenjiBaheux/gists{/gist_id}","starred_url":"https://api.github.com/users/KenjiBaheux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenjiBaheux/subscriptions","organizations_url":"https://api.github.com/users/KenjiBaheux/orgs","repos_url":"https://api.github.com/users/KenjiBaheux/repos","events_url":"https://api.github.com/users/KenjiBaheux/events{/privacy}","received_events_url":"https://api.github.com/users/KenjiBaheux/received_events","type":"User","site_admin":false},"open_issues":49,"closed_issues":30,"state":"open","created_at":"2014-10-14T08:25:32Z","updated_at":"2016-12-02T00:56:51Z","due_on":null,"closed_at":null},"comments":39,"created_at":"2016-02-23T11:04:30Z","updated_at":"2016-12-12T08:49:50Z","closed_at":null,"body":"For the sake of modularization and isolation. Could it be possible to improve the update algorithm to rely on the eTag / content-size / other headers sent by the server to decide when a service worker changed? Now we need to include a mark of change in the sw and this forces a lot of developments to postprocess service worker files.\n"},"comment":{"url":"https://api.github.com/repos/w3c/ServiceWorker/issues/comments/266373359","html_url":"https://github.com/w3c/ServiceWorker/issues/839#issuecomment-266373359","issue_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/839","id":266373359,"user":{"login":"mattto","id":1782098,"avatar_url":"https://avatars.githubusercontent.com/u/1782098?v=3","gravatar_id":"","url":"https://api.github.com/users/mattto","html_url":"https://github.com/mattto","followers_url":"https://api.github.com/users/mattto/followers","following_url":"https://api.github.com/users/mattto/following{/other_user}","gists_url":"https://api.github.com/users/mattto/gists{/gist_id}","starred_url":"https://api.github.com/users/mattto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattto/subscriptions","organizations_url":"https://api.github.com/users/mattto/orgs","repos_url":"https://api.github.com/users/mattto/repos","events_url":"https://api.github.com/users/mattto/events{/privacy}","received_events_url":"https://api.github.com/users/mattto/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T08:49:50Z","updated_at":"2016-12-12T08:49:50Z","body":"> How can we detect whether imported scripts have been byte-changed or not without calling importScripts()?\r\n\r\nMaybe I'm missing something, but I thought you'd just fetch the script and then compare it to the one on disk. That is, when a SW is installed you have on disk all its scripts (both main and imported) and those URLs. To do a byte-to-byte comparison, you'd fetch all the scripts and compare the bytes on disk."}}
{"actor":{"display_login":"mattto"}}