{"action":"created","issue":{"url":"https://api.github.com/repos/rails/jquery-ujs/issues/318","labels_url":"https://api.github.com/repos/rails/jquery-ujs/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/rails/jquery-ujs/issues/318/comments","events_url":"https://api.github.com/repos/rails/jquery-ujs/issues/318/events","html_url":"https://github.com/rails/jquery-ujs/issues/318","id":12625114,"number":318,"title":"Missing Vary Header","user":{"login":"guilhermesimoes","id":531168,"avatar_url":"https://avatars.githubusercontent.com/u/531168?v=3","gravatar_id":"","url":"https://api.github.com/users/guilhermesimoes","html_url":"https://github.com/guilhermesimoes","followers_url":"https://api.github.com/users/guilhermesimoes/followers","following_url":"https://api.github.com/users/guilhermesimoes/following{/other_user}","gists_url":"https://api.github.com/users/guilhermesimoes/gists{/gist_id}","starred_url":"https://api.github.com/users/guilhermesimoes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilhermesimoes/subscriptions","organizations_url":"https://api.github.com/users/guilhermesimoes/orgs","repos_url":"https://api.github.com/users/guilhermesimoes/repos","events_url":"https://api.github.com/users/guilhermesimoes/events{/privacy}","received_events_url":"https://api.github.com/users/guilhermesimoes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-03-30T02:20:50Z","updated_at":"2015-03-31T11:44:53Z","closed_at":null,"body":"This bug occurs in Chrome and IE only but apparently [it is a problem on Rails' end](https://code.google.com/p/chromium/issues/detail?id=196701).\r\n\r\nYou can reproduce it by simply going to this page (http://secret-journey-4942.herokuapp.com/) and following the 3 steps indicated.\r\n\r\nAfter hitting the back button, the browser will render the javascript returned by XHR to render the page instead of the actual page.\r\n\r\n[Here's the repository](https://github.com/GuilhermeSimoes/chrome-bug) of the site that displays the bug.\r\n\r\nThis is fixed server-side by sending a Vary header, like so:\r\n\r\n```\r\nresponse.headers['Vary'] = 'Accept'\r\n```"},"comment":{"url":"https://api.github.com/repos/rails/jquery-ujs/issues/comments/88056129","html_url":"https://github.com/rails/jquery-ujs/issues/318#issuecomment-88056129","issue_url":"https://api.github.com/repos/rails/jquery-ujs/issues/318","id":88056129,"user":{"login":"jonatack","id":2415484,"avatar_url":"https://avatars.githubusercontent.com/u/2415484?v=3","gravatar_id":"","url":"https://api.github.com/users/jonatack","html_url":"https://github.com/jonatack","followers_url":"https://api.github.com/users/jonatack/followers","following_url":"https://api.github.com/users/jonatack/following{/other_user}","gists_url":"https://api.github.com/users/jonatack/gists{/gist_id}","starred_url":"https://api.github.com/users/jonatack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonatack/subscriptions","organizations_url":"https://api.github.com/users/jonatack/orgs","repos_url":"https://api.github.com/users/jonatack/repos","events_url":"https://api.github.com/users/jonatack/events{/privacy}","received_events_url":"https://api.github.com/users/jonatack/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T11:44:53Z","updated_at":"2015-03-31T11:44:53Z","body":"For the people commenting on this issue, this is free, open-source software (yay!) and you are more than welcome to make a pull request to improve it :heart: "}}