{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/8690","labels_url":"https://api.github.com/repos/atom/atom/issues/8690/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/8690/comments","events_url":"https://api.github.com/repos/atom/atom/issues/8690/events","html_url":"https://github.com/atom/atom/pull/8690","id":105105723,"number":8690,"title":"Support query strings for atom protocol.","user":{"login":"kaitoy","id":1180756,"avatar_url":"https://avatars.githubusercontent.com/u/1180756?v=3","gravatar_id":"","url":"https://api.github.com/users/kaitoy","html_url":"https://github.com/kaitoy","followers_url":"https://api.github.com/users/kaitoy/followers","following_url":"https://api.github.com/users/kaitoy/following{/other_user}","gists_url":"https://api.github.com/users/kaitoy/gists{/gist_id}","starred_url":"https://api.github.com/users/kaitoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaitoy/subscriptions","organizations_url":"https://api.github.com/users/kaitoy/orgs","repos_url":"https://api.github.com/users/kaitoy/repos","events_url":"https://api.github.com/users/kaitoy/events{/privacy}","received_events_url":"https://api.github.com/users/kaitoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-06T17:27:50Z","updated_at":"2015-09-08T17:33:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/atom/atom/pulls/8690","html_url":"https://github.com/atom/atom/pull/8690","diff_url":"https://github.com/atom/atom/pull/8690.diff","patch_url":"https://github.com/atom/atom/pull/8690.patch"},"body":"I created an atom package [disturb-me](https://atom.io/packages/disturb-me) which adds an image randomly moving in the atom window by an `img` tag.\r\nWhen I specify a gif image located in the package using atom protocol (e.g. `atom://disturb-me/assets/atom/white/atom_die.gif`), the package set the `src` of the `img` tag to it and then the image is shown. But the gif animation is run only when the image is loaded for the first time.\r\nIt seems this is because the image was cached. So, to avoid such caching, I want to add a query string with a random value to the url. (e.g. `atom://disturb-me/assets/atom/white/atom_die.gif?time=1441559906660`)\r\nI locally tested the random query method with this change I'm pull-requesting and confirmed the caching issue was solved."},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/138642876","html_url":"https://github.com/atom/atom/pull/8690#issuecomment-138642876","issue_url":"https://api.github.com/repos/atom/atom/issues/8690","id":138642876,"user":{"login":"ssorallen","id":29612,"avatar_url":"https://avatars.githubusercontent.com/u/29612?v=3","gravatar_id":"","url":"https://api.github.com/users/ssorallen","html_url":"https://github.com/ssorallen","followers_url":"https://api.github.com/users/ssorallen/followers","following_url":"https://api.github.com/users/ssorallen/following{/other_user}","gists_url":"https://api.github.com/users/ssorallen/gists{/gist_id}","starred_url":"https://api.github.com/users/ssorallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssorallen/subscriptions","organizations_url":"https://api.github.com/users/ssorallen/orgs","repos_url":"https://api.github.com/users/ssorallen/repos","events_url":"https://api.github.com/users/ssorallen/events{/privacy}","received_events_url":"https://api.github.com/users/ssorallen/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T17:33:01Z","updated_at":"2015-09-08T17:33:01Z","body":"Use [`url.parse`](https://nodejs.org/docs/latest/api/url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost) instead of `indexOf` to let Node do the URL parsing."}}