Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On an error page, when clicking "Go Back", it sometimes loads the cached page again causing issues #16456

Open
mattab opened this issue Sep 21, 2020 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Usability For issues that let users achieve a defined goal more effectively or efficiently.

Comments

@mattab
Copy link
Member

mattab commented Sep 21, 2020

On any page with a form, we use nonces. If we wait more than 5 minutes after loading the page, to submit the form, the form submit fails and the error page is displayed.
Then naturally we click "Go Back", but then it seems to sometimes load the same cached page again. So the form that we submitted late still has the same nonce and re-submitting the form still fails. Instead, when clicking "Go back" we expected a page refresh so a new nonce is generated. (maybe a simple solution could be to add a random URL parameter to the "Go back" link).

I've had this issue a few times recently, maybe this behavior was changed in the browser in recent weeks/months (firefox), as i didn't have this issue before. Reproduced on our cloud instance

@mattab mattab added Bug For errors / faults / flaws / inconsistencies etc. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. labels Sep 21, 2020
@tsteur tsteur added this to the Backlog (Help wanted) milestone Sep 22, 2020
@sgiehl
Copy link
Member

sgiehl commented Oct 16, 2020

Using the history back might imho always load the page from browser cache. Maybe setting a Cache-Control: no-cache header for pages including a nonce might help 🤔

@mattab
Copy link
Member Author

mattab commented Oct 18, 2020

sounds good to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Usability For issues that let users achieve a defined goal more effectively or efficiently.
Projects
None yet
Development

No branches or pull requests

3 participants