{"action":"created","issue":{"url":"https://api.github.com/repos/HiSPARC/jsparc/issues/41","labels_url":"https://api.github.com/repos/HiSPARC/jsparc/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/HiSPARC/jsparc/issues/41/comments","events_url":"https://api.github.com/repos/HiSPARC/jsparc/issues/41/events","html_url":"https://github.com/HiSPARC/jsparc/issues/41","id":106147944,"number":41,"title":"Prevent caching JSON for event-display?","user":{"login":"153957","id":1433682,"avatar_url":"https://avatars.githubusercontent.com/u/1433682?v=3","gravatar_id":"","url":"https://api.github.com/users/153957","html_url":"https://github.com/153957","followers_url":"https://api.github.com/users/153957/followers","following_url":"https://api.github.com/users/153957/following{/other_user}","gists_url":"https://api.github.com/users/153957/gists{/gist_id}","starred_url":"https://api.github.com/users/153957/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/153957/subscriptions","organizations_url":"https://api.github.com/users/153957/orgs","repos_url":"https://api.github.com/users/153957/repos","events_url":"https://api.github.com/users/153957/events{/privacy}","received_events_url":"https://api.github.com/users/153957/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HiSPARC/jsparc/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/HiSPARC/jsparc/labels/enhancement","name":"enhancement","color":"0b02e1"}],"state":"closed","locked":false,"assignee":{"login":"153957","id":1433682,"avatar_url":"https://avatars.githubusercontent.com/u/1433682?v=3","gravatar_id":"","url":"https://api.github.com/users/153957","html_url":"https://github.com/153957","followers_url":"https://api.github.com/users/153957/followers","following_url":"https://api.github.com/users/153957/following{/other_user}","gists_url":"https://api.github.com/users/153957/gists{/gist_id}","starred_url":"https://api.github.com/users/153957/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/153957/subscriptions","organizations_url":"https://api.github.com/users/153957/orgs","repos_url":"https://api.github.com/users/153957/repos","events_url":"https://api.github.com/users/153957/events{/privacy}","received_events_url":"https://api.github.com/users/153957/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-09-12T10:57:53Z","updated_at":"2015-09-12T12:06:16Z","closed_at":"2015-09-12T12:06:16Z","body":"Should we prevent caching of the JSON files for the event-display?\r\nAfter updating the server-side files for the latest version of the event-display, including a new dataset my browser simply reused the previous JSON data. This data was outside the (new) timestamp limits, causing some stations to not show events.\r\nWe could prevent caching easily: http://stackoverflow.com/a/15041641/1033535\r\n\r\nAha! I've got it! Add some random value when retrieving stations.json to always get a fresh version of that file. Then use the timestamps from that file as parameters when retrieving the data. If we ever choose a new data range, the stations.json will have the new timestamps, so the data will be retrieved with different parameters, causing a refresh.\r\n\r\n@davidfokkema "},"comment":{"url":"https://api.github.com/repos/HiSPARC/jsparc/issues/comments/139752039","html_url":"https://github.com/HiSPARC/jsparc/issues/41#issuecomment-139752039","issue_url":"https://api.github.com/repos/HiSPARC/jsparc/issues/41","id":139752039,"user":{"login":"153957","id":1433682,"avatar_url":"https://avatars.githubusercontent.com/u/1433682?v=3","gravatar_id":"","url":"https://api.github.com/users/153957","html_url":"https://github.com/153957","followers_url":"https://api.github.com/users/153957/followers","following_url":"https://api.github.com/users/153957/following{/other_user}","gists_url":"https://api.github.com/users/153957/gists{/gist_id}","starred_url":"https://api.github.com/users/153957/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/153957/subscriptions","organizations_url":"https://api.github.com/users/153957/orgs","repos_url":"https://api.github.com/users/153957/repos","events_url":"https://api.github.com/users/153957/events{/privacy}","received_events_url":"https://api.github.com/users/153957/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T12:06:16Z","updated_at":"2015-09-12T12:06:16Z","body":"Fixed in 7e37d864d7374c55acf747aa4776b008632502ce"}}