{"action":"opened","issue":{"url":"https://api.github.com/repos/Bouke/django-two-factor-auth/issues/99","labels_url":"https://api.github.com/repos/Bouke/django-two-factor-auth/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/Bouke/django-two-factor-auth/issues/99/comments","events_url":"https://api.github.com/repos/Bouke/django-two-factor-auth/issues/99/events","html_url":"https://github.com/Bouke/django-two-factor-auth/issues/99","id":84833302,"number":99,"title":"Chrome prefetch causing the TOTP qrcode to 404","user":{"login":"kramimus","id":1115268,"avatar_url":"https://avatars.githubusercontent.com/u/1115268?v=3","gravatar_id":"","url":"https://api.github.com/users/kramimus","html_url":"https://github.com/kramimus","followers_url":"https://api.github.com/users/kramimus/followers","following_url":"https://api.github.com/users/kramimus/following{/other_user}","gists_url":"https://api.github.com/users/kramimus/gists{/gist_id}","starred_url":"https://api.github.com/users/kramimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kramimus/subscriptions","organizations_url":"https://api.github.com/users/kramimus/orgs","repos_url":"https://api.github.com/users/kramimus/repos","events_url":"https://api.github.com/users/kramimus/events{/privacy}","received_events_url":"https://api.github.com/users/kramimus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-04T00:26:22Z","updated_at":"2015-06-04T00:26:22Z","closed_at":null,"body":"In some cases, Chrome fetches /account/two_factor/qrcode/ twice, presumably due to prefetch behavior. \r\n\r\nThe second get returns a 404 since django_two_factor-qr_secret_key gets deleted from the session on the first get. The QR code does not get rendered when this happens.\r\n\r\nSeen on Chrome 43."}}