{"action":"created","issue":{"url":"https://api.github.com/repos/refile/refile/issues/292","labels_url":"https://api.github.com/repos/refile/refile/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/refile/refile/issues/292/comments","events_url":"https://api.github.com/repos/refile/refile/issues/292/events","html_url":"https://github.com/refile/refile/pull/292","id":93436991,"number":292,"title":"Prevent AJAX caching errors","user":{"login":"goddamnhippie","id":119947,"avatar_url":"https://avatars.githubusercontent.com/u/119947?v=3","gravatar_id":"","url":"https://api.github.com/users/goddamnhippie","html_url":"https://github.com/goddamnhippie","followers_url":"https://api.github.com/users/goddamnhippie/followers","following_url":"https://api.github.com/users/goddamnhippie/following{/other_user}","gists_url":"https://api.github.com/users/goddamnhippie/gists{/gist_id}","starred_url":"https://api.github.com/users/goddamnhippie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goddamnhippie/subscriptions","organizations_url":"https://api.github.com/users/goddamnhippie/orgs","repos_url":"https://api.github.com/users/goddamnhippie/repos","events_url":"https://api.github.com/users/goddamnhippie/events{/privacy}","received_events_url":"https://api.github.com/users/goddamnhippie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-07T04:43:15Z","updated_at":"2015-07-24T15:21:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/refile/refile/pulls/292","html_url":"https://github.com/refile/refile/pull/292","diff_url":"https://github.com/refile/refile/pull/292.diff","patch_url":"https://github.com/refile/refile/pull/292.patch"},"body":"When using the multiple files feature on Safari (8.0.7 / OS X 10.10.4), sometimes the response to the presign url is cached resulting in the same upload id for multiple files, which in turn results in multiple files overwriting the same cached file.\r\nThis change fixes the issue by adding a querystring parameter to the presign url consisting of a timestamp and the file index, therefore avoiding duplicate urls."},"comment":{"url":"https://api.github.com/repos/refile/refile/issues/comments/124556961","html_url":"https://github.com/refile/refile/pull/292#issuecomment-124556961","issue_url":"https://api.github.com/repos/refile/refile/issues/292","id":124556961,"user":{"login":"ivobenedito","id":9447,"avatar_url":"https://avatars.githubusercontent.com/u/9447?v=3","gravatar_id":"","url":"https://api.github.com/users/ivobenedito","html_url":"https://github.com/ivobenedito","followers_url":"https://api.github.com/users/ivobenedito/followers","following_url":"https://api.github.com/users/ivobenedito/following{/other_user}","gists_url":"https://api.github.com/users/ivobenedito/gists{/gist_id}","starred_url":"https://api.github.com/users/ivobenedito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivobenedito/subscriptions","organizations_url":"https://api.github.com/users/ivobenedito/orgs","repos_url":"https://api.github.com/users/ivobenedito/repos","events_url":"https://api.github.com/users/ivobenedito/events{/privacy}","received_events_url":"https://api.github.com/users/ivobenedito/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T15:21:34Z","updated_at":"2015-07-24T15:21:34Z","body":"@abitdodgy I'm using the **:host** option on the attachment_field helper to point the form presign calls to the Rails application instead of the CDN. \r\nThat way, we don't have to fight caching :). The presign calls just shouldn't go to the CDN."}}