{"action":"created","issue":{"url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/664","labels_url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/664/labels{/name}","comments_url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/664/comments","events_url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/664/events","html_url":"https://github.com/slightlyoff/ServiceWorker/issues/664","id":64766529,"number":664,"title":"Cache should sanitize the stored Request in put/add/addAll","user":{"login":"wanderview","id":1256526,"avatar_url":"https://avatars.githubusercontent.com/u/1256526?v=3","gravatar_id":"","url":"https://api.github.com/users/wanderview","html_url":"https://github.com/wanderview","followers_url":"https://api.github.com/users/wanderview/followers","following_url":"https://api.github.com/users/wanderview/following{/other_user}","gists_url":"https://api.github.com/users/wanderview/gists{/gist_id}","starred_url":"https://api.github.com/users/wanderview/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanderview/subscriptions","organizations_url":"https://api.github.com/users/wanderview/orgs","repos_url":"https://api.github.com/users/wanderview/repos","events_url":"https://api.github.com/users/wanderview/events{/privacy}","received_events_url":"https://api.github.com/users/wanderview/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-27T13:56:16Z","updated_at":"2015-03-27T17:50:53Z","closed_at":null,"body":"There are some values on the Request object that should not be persisted.  Fetch handles this by sanitizing the input Request.  See step 4 from here:\r\n\r\n  https://fetch.spec.whatwg.org/#dom-request\r\n\r\n@annevk suggests Cache should have a similar sanitize step.\r\n\r\nThe attributes I know about that should not be stored are:\r\n\r\n* context (Cache should always produce a context of \"fetch\")\r\n* synchronous flag"},"comment":{"url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/comments/87032185","html_url":"https://github.com/slightlyoff/ServiceWorker/issues/664#issuecomment-87032185","issue_url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/664","id":87032185,"user":{"login":"ehsan","id":168508,"avatar_url":"https://avatars.githubusercontent.com/u/168508?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsan","html_url":"https://github.com/ehsan","followers_url":"https://api.github.com/users/ehsan/followers","following_url":"https://api.github.com/users/ehsan/following{/other_user}","gists_url":"https://api.github.com/users/ehsan/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsan/subscriptions","organizations_url":"https://api.github.com/users/ehsan/orgs","repos_url":"https://api.github.com/users/ehsan/repos","events_url":"https://api.github.com/users/ehsan/events{/privacy}","received_events_url":"https://api.github.com/users/ehsan/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T17:50:53Z","updated_at":"2015-03-27T17:50:53Z","body":"I agree that the context doesn't affect anything that goes on over the network, but the point is that a service worker which synthesizes responses can choose to synthesize differently based on the context."}}