{"action":"closed","issue":{"url":"https://api.github.com/repos/rails/turbolinks/issues/567","labels_url":"https://api.github.com/repos/rails/turbolinks/issues/567/labels{/name}","comments_url":"https://api.github.com/repos/rails/turbolinks/issues/567/comments","events_url":"https://api.github.com/repos/rails/turbolinks/issues/567/events","html_url":"https://github.com/rails/turbolinks/issues/567","id":93575067,"number":567,"title":"[v2.5.3] A click between a page:restore and page:change restores the wrong page","user":{"login":"elia","id":1051,"avatar_url":"https://avatars.githubusercontent.com/u/1051?v=3","gravatar_id":"","url":"https://api.github.com/users/elia","html_url":"https://github.com/elia","followers_url":"https://api.github.com/users/elia/followers","following_url":"https://api.github.com/users/elia/following{/other_user}","gists_url":"https://api.github.com/users/elia/gists{/gist_id}","starred_url":"https://api.github.com/users/elia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elia/subscriptions","organizations_url":"https://api.github.com/users/elia/orgs","repos_url":"https://api.github.com/users/elia/repos","events_url":"https://api.github.com/users/elia/events{/privacy}","received_events_url":"https://api.github.com/users/elia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/turbolinks/labels/needs%20feedback","name":"needs feedback","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-07T16:39:28Z","updated_at":"2015-10-04T22:45:37Z","closed_at":"2015-10-04T22:45:37Z","body":"It's a bit tricky to describe but I'll try, feel free to ask for clarification\r\n\r\nbackground:\r\n- slow requests\r\n- transition cache enabled\r\n- start on page at url A\r\n\r\nreproduce:\r\n- click on link B\r\n - fetches B from server\r\n\r\n- click on link A\r\n - restores of A from cache (fires page:change & page:restore)\r\n - starts fetching of fresh copy of A from server (takes some seconds)\r\n\r\n- click on link B (while A is being fetched)\r\n - triggers the restore from cache lifecycle events but the body isn't updated, the progress bar is activated and reaches 100% (as typical when a page is restored from cache)\r\n - starts fetching of fresh copy of B from server (takes some seconds)\r\n - eventually the fresh copy of B arrives and is loaded\r\n"}}