{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/ServiceWorker/issues/1020","repository_url":"https://api.github.com/repos/w3c/ServiceWorker","labels_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/1020/labels{/name}","comments_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/1020/comments","events_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/1020/events","html_url":"https://github.com/w3c/ServiceWorker/pull/1020","id":193687701,"number":1020,"title":"Fetch service worker scripts with \"no-cache\" by default","user":{"login":"jungkees","id":1331169,"avatar_url":"https://avatars.githubusercontent.com/u/1331169?v=3","gravatar_id":"","url":"https://api.github.com/users/jungkees","html_url":"https://github.com/jungkees","followers_url":"https://api.github.com/users/jungkees/followers","following_url":"https://api.github.com/users/jungkees/following{/other_user}","gists_url":"https://api.github.com/users/jungkees/gists{/gist_id}","starred_url":"https://api.github.com/users/jungkees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungkees/subscriptions","organizations_url":"https://api.github.com/users/jungkees/orgs","repos_url":"https://api.github.com/users/jungkees/repos","events_url":"https://api.github.com/users/jungkees/events{/privacy}","received_events_url":"https://api.github.com/users/jungkees/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-06T05:38:58Z","updated_at":"2016-12-09T00:58:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/w3c/ServiceWorker/pulls/1020","html_url":"https://github.com/w3c/ServiceWorker/pull/1020","diff_url":"https://github.com/w3c/ServiceWorker/pull/1020.diff","patch_url":"https://github.com/w3c/ServiceWorker/pull/1020.patch"},"body":"This introduces service worker registration's use cache field and its\r\nrelated APIs: options.useCache to register method and\r\nregistration.useCache for ServiceWorkerRegistration objects. This\r\nchanges the default cache mode of fetching SW scripts to \"no-cache\".\r\nAfter the change, 24 hours limit and job's force bypass cache flag rules\r\nare still enforced. register() method's options value set to\r\n{ useCache: true } re-enables the previous default behavior provided\r\nbefore this change.\r\n\r\nFixes #893."},"comment":{"url":"https://api.github.com/repos/w3c/ServiceWorker/issues/comments/265902719","html_url":"https://github.com/w3c/ServiceWorker/pull/1020#issuecomment-265902719","issue_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/1020","id":265902719,"user":{"login":"jungkees","id":1331169,"avatar_url":"https://avatars.githubusercontent.com/u/1331169?v=3","gravatar_id":"","url":"https://api.github.com/users/jungkees","html_url":"https://github.com/jungkees","followers_url":"https://api.github.com/users/jungkees/followers","following_url":"https://api.github.com/users/jungkees/following{/other_user}","gists_url":"https://api.github.com/users/jungkees/gists{/gist_id}","starred_url":"https://api.github.com/users/jungkees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungkees/subscriptions","organizations_url":"https://api.github.com/users/jungkees/orgs","repos_url":"https://api.github.com/users/jungkees/repos","events_url":"https://api.github.com/users/jungkees/events{/privacy}","received_events_url":"https://api.github.com/users/jungkees/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T00:58:19Z","updated_at":"2016-12-09T00:58:19Z","body":"@jakearchibald, _force bypass cache flag_ is for dev tools, debugging purposes, potential calls from other specs, etc. (See https://github.com/w3c/ServiceWorker/issues/753.) The registration's use cache field is being checked in Update and `importScripts()` as one of the conditions for \"no-cache\". In this change, I made the registration's use cache is set in Set Registrations algorithm given job's use cache that's passed from Register requests."}}
{"actor":{"display_login":"jungkees"}}