{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/frontend/issues/11440","labels_url":"https://api.github.com/repos/guardian/frontend/issues/11440/labels{/name}","comments_url":"https://api.github.com/repos/guardian/frontend/issues/11440/comments","events_url":"https://api.github.com/repos/guardian/frontend/issues/11440/events","html_url":"https://github.com/guardian/frontend/pull/11440","id":124744167,"number":11440,"title":"Only intercept fetch events in SW if they're to secure endpoints","user":{"login":"sndrs","id":867233,"avatar_url":"https://avatars.githubusercontent.com/u/867233?v=3","gravatar_id":"","url":"https://api.github.com/users/sndrs","html_url":"https://github.com/sndrs","followers_url":"https://api.github.com/users/sndrs/followers","following_url":"https://api.github.com/users/sndrs/following{/other_user}","gists_url":"https://api.github.com/users/sndrs/gists{/gist_id}","starred_url":"https://api.github.com/users/sndrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sndrs/subscriptions","organizations_url":"https://api.github.com/users/sndrs/orgs","repos_url":"https://api.github.com/users/sndrs/repos","events_url":"https://api.github.com/users/sndrs/events{/privacy}","received_events_url":"https://api.github.com/users/sndrs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-04T11:45:20Z","updated_at":"2016-01-04T12:04:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/guardian/frontend/pulls/11440","html_url":"https://github.com/guardian/frontend/pull/11440","diff_url":"https://github.com/guardian/frontend/pull/11440.diff","patch_url":"https://github.com/guardian/frontend/pull/11440.patch"},"body":"it doesn't let you fetch them anyway, should stop errors like these:\r\n\r\n![screen shot 2016-01-04 at 11 43 25](https://cloud.githubusercontent.com/assets/867233/12089039/87c5aaa4-b2d8-11e5-94bd-5fda4e184edf.png)\r\n![screen shot 2016-01-04 at 11 43 54](https://cloud.githubusercontent.com/assets/867233/12089040/89c204f6-b2d8-11e5-8367-4b70c5615bc2.png)\r\n"},"comment":{"url":"https://api.github.com/repos/guardian/frontend/issues/comments/168659568","html_url":"https://github.com/guardian/frontend/pull/11440#issuecomment-168659568","issue_url":"https://api.github.com/repos/guardian/frontend/issues/11440","id":168659568,"user":{"login":"OliverJAsh","id":921609,"avatar_url":"https://avatars.githubusercontent.com/u/921609?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverJAsh","html_url":"https://github.com/OliverJAsh","followers_url":"https://api.github.com/users/OliverJAsh/followers","following_url":"https://api.github.com/users/OliverJAsh/following{/other_user}","gists_url":"https://api.github.com/users/OliverJAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverJAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverJAsh/subscriptions","organizations_url":"https://api.github.com/users/OliverJAsh/orgs","repos_url":"https://api.github.com/users/OliverJAsh/repos","events_url":"https://api.github.com/users/OliverJAsh/events{/privacy}","received_events_url":"https://api.github.com/users/OliverJAsh/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T12:04:16Z","updated_at":"2016-01-04T12:04:16Z","body":"Sounds sensible and I think it's good for us to start clearing up errors when running in HTTPS mode, although I think the bigger problem we have here is mixed content.\r\n\r\nSeeing as this change effects the offline page, you should be able to test if it still works. To do this locally:\r\n\r\n* Run `make compile` (you need compiled assets for the offline page as it can't cache the small modules)\r\n* Go to http://localhost:9000/info/developer-blog to install the SW. You might already have a SW installed, in which case either ensure the new one takes over (see Dev Tools) or just do the test in an incognito window if it's easier.\r\n* Go offline (Dev Tools network throttling)\r\n* Refresh and the offline page should appear"}}